$scope.deleteAll=function(){
var cks=$(":checked:checked");
for(var i=0;i<cks.length;i++){
var ck = cks[i];
if(ck.length==undefined){
alert("请先选择要删除的选项");
}else{
var _name = ck.value;
for(var j=0;j<$scope.datas.length;j++){
if($scope.datas[j].name=_name){
$scope.datas.splice(j,1);
break;
}
}
}
}
var cks=$(":checked:checked");
for(var i=0;i<cks.length;i++){
var ck = cks[i];
if(ck.length==undefined){
alert("请先选择要删除的选项");
}else{
var _name = ck.value;
for(var j=0;j<$scope.datas.length;j++){
if($scope.datas[j].name=_name){
$scope.datas.splice(j,1);
break;
}
}
}
}