1 <script type="text/javascript"> 2 function delcheck(qId,typeid) { 3 if (!confirm('确定删除吗?')) return false; 4 //记录下删除行id 5 $.post("/systemUser?qId="+qId+"&typeid="+typeid, null, function (data, status) { 6 7 if (data.success) { 8 alert(data.msg);//删除成功提示 9 location.reload();//刷新页面 10 } else { 11 alert(data.msg); 12 } 13 }); 14 } 15 </script>