首页 > 其他 > 详细

PLSC

时间:2018-07-29 21:05:12      阅读:167      评论:0      收藏:0      [点我收藏+]

  <th>全选<input id="ckAll" type="checkbox"  onclick="QuanXuan()"/></th>

  <td><input class="ckc" type="checkbox"  value="@item.PId"/></td>

<script>
//全选
function QuanXuan()
{
$(".ckc").prop("checked",$("#ckAll").prop("checked"))
}
//批量删除
function PLDelete()
{
var arry = new Array();
$(".ckc:checked").each(function () {
arry.push(this.value);
})

if (confirm("确定要删除吗?"))
{
$.ajax({
url: "/ErShi/PLDelete/"+arry.toString(),
type: "post",
success: function (data)
{
if (data>0) {
alert("删除成功!");
location.href = "/ErShi/Index";
}
}
})
}
}
</script>

PLSC

原文:https://www.cnblogs.com/xiaochao1996/p/9387523.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!