ITeye博客

删除统一提示

dengwenjun · 2014-12-12 17:23 · Web前端 · Markdown

[code="java"]$(function(){ $("a[target='ajax']").click(function(){ var that = this; if(confirm($(this).attr("title"))){ $.ajax({ type: "post", url: $(that).attr("href"), dataType:"json", success: function(data){ alert("删除成功!"); } }); } else{ return false; } }); }); 删除[/code]

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。