jquery删除提示框弹出是否删除对话框
发布时间:2016-12-30 来源:查字典编辑
摘要:复制代码代码如下:/***删除草稿*/functiondeleteDraft(the,id){$.messager.confirm('删除草...
复制代码 代码如下:
/**
* 删除草稿
*/
function deleteDraft(the,id){
$.messager.confirm('删除草稿提醒', '</br>确定删除这篇草稿吗?</br></br>',function(r){
if(r){
$.ajax({
type : "post",
url : "http://localhost:8090/webplus3/_web/sns/delBlog.do?_p=YXM9Mw__&id=" + id,
success : function(data) {
if(data == "success") {
$(the).parents("li").remove();
parent.initDraft();
}
}
});
}
});
}