---
title: "删除统一提示"
author: "dengwenjun"
date: "2014-12-12T17:23:42Z"
tags: []
categories: ["Web前端"]
slug: "untitled"
draft: false
lastmod: "2014-12-12T17:23:42Z"
id: 2165924
url: "https://dengwenjun.iteye.com/blog/2165924"
---

\[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; } }); }); [删除]($%7Broot%7D/test/delVote "确定要删除吗?")\[/code]