$.confirm(
{
title: '删除消息',
content: '确认删除?',
buttons: {
confirm: {
text: "确认",
btnClass: 'btn-primary',
keys: ['enter'],
action: function () {
var param = {
"id": id
}
$.post("/user/deleteuser", param, function (result) {
if (result != null && result.status == 0) {
table.ajax.reload(null, false);
$.alert({
title: '提示',
content: '数据删除成功!',
});
return;
}
else {
$.alert({
title: '提示',
content: '数据删除失败!',
});
return;
}
});
}
},
cancel: {
text: "取消",
btnClass: 'btn-default',
keys: ['esc'],
action: function () {
}
}
}
}
);
{
title: '删除消息',
content: '确认删除?',
buttons: {
confirm: {
text: "确认",
btnClass: 'btn-primary',
keys: ['enter'],
action: function () {
var param = {
"id": id
}
$.post("/user/deleteuser", param, function (result) {
if (result != null && result.status == 0) {
table.ajax.reload(null, false);
$.alert({
title: '提示',
content: '数据删除成功!',
});
return;
}
else {
$.alert({
title: '提示',
content: '数据删除失败!',
});
return;
}
});
}
},
cancel: {
text: "取消",
btnClass: 'btn-default',
keys: ['esc'],
action: function () {
}
}
}
}
);