//下拉分页显示查询
$("[name='Select1']").change(function () {
var arr = $("[name='Select1'] :selected").val()
location.href = '/Index/Index?size=' + arr;
})
//批量删除
function Dels() {
if (confirm("确认删除吗?"))
{
var arr = [];
$("[name='cks']:checked").each(function () {
arr.push($(this).val())
})
$.ajax({
url: "/Index/DeleteIds",
type: "post",
data: { id: arr.toString() },
success: function (i) {
if (i > 0)
{
alert('删除成功!')
}
}
})
}
}