js代码如下:
//批量删除
$("#moveInfo").click(function(){
var checkedbox = $("input[name='mm']:checked");
if(checkedbox.length == 0){
layer.msg("请选择要删除的信息", {
time : 1000
});
}else{
var res = checkedbox.map(function(){
return this.value;
});
$.ajax({
type : "get",
dataType : "json",
url : "removeFugitiveBaseInfo.action?ztryNumbers="+res.toArray().join(","),
success : function(data) {
if (data == "success") {
layer.msg("删除成功", {
time : 1000
});
} else {
layer.msg("删除失败", {
time : 1000
});
}
},
});
}
})