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();

  }

  }

  });

  }

  });

  }