Javascript 从ng重复如何获取每个迭代标记的范围值
Javascript 从ng重复如何获取每个迭代标记的范围值,javascript,angularjs,Javascript,Angularjs,对于d 为了f [replace]>{{ngController} {{x}}{{well}} var-app=angular.module('myApp',[]); app.controller('customersCtrl',函数($scope){ $scope.a={ d:[1,2,3,4,5], f:[6,7,8,9] }; $scope.call=函数(val){ $scope.replace=val; } }); 对于d 为了f [replace]>{{ngControl
对于d
为了f
[replace]>{{ngController}
{{x}}{{well}}
var-app=angular.module('myApp',[]);
app.controller('customersCtrl',函数($scope){
$scope.a={
d:[1,2,3,4,5],
f:[6,7,8,9]
};
$scope.call=函数(val){
$scope.replace=val;
}
});
对于d
为了f
[replace]>{{ngController}
{{x}}{{well}}
var-app=angular.module('myApp',[]);
app.controller('customersCtrl',函数($scope){
$scope.a={
d:[1,2,3,4,5],
f:[6,7,8,9]
};
$scope.call=函数(val){
$scope.replace=val;
}
$scope.fun=函数(vl){alert(vl)}
});