$("#delOk").click(function () {
var items = "";
$("#[type='checkbox'][checked]").each(function () {
items += $(this).val() + ",";
});
if (items == "") {
alert("请选择要删除的用户");
return false;
}
$.ajax({
type: "post",
url: "delUser.aspx/delUsers",
data: "{'users':'" + items + "'}",
dataType: "json",
contentType: "application/json",
success: function (result) {
$.get("getAllUers.aspx", function (data) {
$("#users").empty();
$("#users").append(data);
});
},
error: function (err) { alert("err:" + err) }
});
阅读(805) | 评论(0) | 转发(0) |