选择删除 js

来源:互联网 发布:python数据分析的书 编辑:程序博客网 时间:2024/05/20 14:28
function delMsg() {var id = '';$("input[name=id]:checked").each(function() {        id +=','+$(this).val();    });if(id.length > 0) {id = id.substring(1);}$.post('index.php?c=msg&a=delMsg',{"val":id},function(D,S){alert('删除成功');window.location.href='index.php?c=msg&a=myMsgBox';})}

原创粉丝点击