想必大家对删除提示框并不陌生吧,也就是大家常见的弹出是否删除的对话框,下面使用jquery来实现下,感兴趣的朋友不要错过
代码如下: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();}}});}});}