/*执行批量删除的操作*/$scope.deleAll = function(){//设置空数组var arr = [];for (var i=0;i<$scope.users.length;i++) {//选中if($scope.users[i].ck){arr.push($scope.users[i].name);}}if(arr.length<=0){alert("请选择要删除的数据?");}else{for (var x=0;x<arr.length;x++) {for(var j=0;j<$scope.users.length;j++){if(arr[x]==$scope.users[j].name){$scope.users.splice(j,1);}}}}};
1200字范文,内容丰富有趣,写作的好帮手!