Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Can';t绑定嵌套角度ng重复中的js日期选择器_Javascript_Angularjs_Momentjs - Fatal编程技术网

Javascript Can';t绑定嵌套角度ng重复中的js日期选择器

Javascript Can';t绑定嵌套角度ng重复中的js日期选择器,javascript,angularjs,momentjs,Javascript,Angularjs,Momentjs,我试着用下面的代码在angular ng repeat文本框中绑定moment js datepicker。但是它不起作用。没有人能解决这个问题,请告诉我 angular.forEach(a,函数(值,键){ 调试器; angular.forEach(value.manageSampleBOList,函数(value1,key2){ //var isoDate=新日期(value1.collectedDate.toISOString(); //var e=力矩(值1.集中状态); var日期=

我试着用下面的代码在angular ng repeat文本框中绑定moment js datepicker。但是它不起作用。没有人能解决这个问题,请告诉我

angular.forEach(a,函数(值,键){
调试器;
angular.forEach(value.manageSampleBOList,函数(value1,key2){
//var isoDate=新日期(value1.collectedDate.toISOString();
//var e=力矩(值1.集中状态);
var日期=新日期(value1.collectedDate);
var e=toUTCDate(新日期(value1.collectedDate));
//var now_utc=新日期(e.getUTCFullYear()、e.getUTCMonth()、e.getUTCDate()、e.getUTCHours()、e.getUTCMinutes()、e.getUTCSeconds());
//var e=力矩(值1.集中状态);
value.manageSampleBOList[key2].collectedDate=e;
//value.manageSampleBOList[key2].momentDate=moment(value1.collectedDate);
});

{{$index+1}}
{{TestName.AnalyteName}}({{TestName.OrderCode}})

您可以使用角度重复索引为控件指定唯一id。 像


然后你可以在你的JS中得到值

for (var i = 0; i < $scope.myList.length; i++)
{
   $scope.myModel.inputDate[i] = $scope.myList.inputDate;
}
for(变量i=0;i<$scope.myList.length;i++)
{
$scope.myModel.inputDate[i]=$scope.myList.inputDate;
}
for (var i = 0; i < $scope.myList.length; i++)
{
   $scope.myModel.inputDate[i] = $scope.myList.inputDate;
}