$(function(){
$('#batchDel').click(function(){
var str = "";
$('table input:checkbox:gt(0)').each(function(){
if(this.checked==true){
str += this.id + ',';
}
})
$.ajax({
'url':'index.php?action=Loginaction&name=delete_p',
'data':{
'ids':str
},
'type':'post',
'dataType':'text',
success:function(aa){
window.location.href='index.php?action=Loginaction&name=selects';
}
})
})```

ajax批量删除如何获取id
最新推荐文章于 2022-11-02 19:46:08 发布