删除前端的操作

$scope.selectIds=[];

 

$scope.updateSelection = function($event, id) {

if($event.target.checked){

$scope.selectIds.push( id);

}else{

var idx = $scope.selectIds.indexOf(id);

         $scope.selectIds.splice(idx, 1);

}

}  

 

$scope.dele=function(){

 

$http.get('../brand/delete.do?ids='+$scope.selectIds).success(

function(response){

if(response.success){

$scope.reloadList();

}

}

);

}

原文地址:https://www.cnblogs.com/lijun6/p/11523989.html