Heim  >  Artikel  >  Web-Frontend  >  jquery删除提示框弹出是否删除对话框_jquery

jquery删除提示框弹出是否删除对话框_jquery

WBOY
WBOYOriginal
2016-05-16 17:04:571297Durchsuche
复制代码 代码如下:

/**
* 删除草稿
*/
function deleteDraft(the,id){
$.messager.confirm('删除草稿提醒', '确定删除这篇草稿吗?',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();
}
}
});
}
});
}
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn