日期:2014-05-16 浏览次数:20540 次
$(".delete").click(function(){ var id = $(this).attr("name"); var canBeDeleted = false; $.get("<c:url value='/user/canBeDeleted.jhtml'></c:url>",{ID : id},function(data){ canBeDeleted = data.canBeDeleted; if(!data.canBeDeleted) { alert("无法删除用户,原因:" + data.errorInfo); } }); return canBeDeleted; });