1、js文件:
i3Dialogopts.submitFunc=function(){
$.ajax({
type : "post",
url : '${ctx}/studentmanage/deleteArchives.do?ids='+id,
async : false,
dataType : "text",
beforeSend : function() {
},
success : function(html) {
$('#del'+delId).parent().parent().parent().fadeOut("slow");
},
error : function(t) {
}
});
}
html:
<span class="icon del" id="del<s:property value='#statu.count'/>" title="删除" onclick="gobackUrl('${archives.id }','<s:property value='#statu.count'/>');"></span>
action:
/**
* 删除档案袋
*
* @return
*/
@Action(value = "/studentmanage/deleteArchives")
public void delete() {
this.archivesService.deleteArchivesByIds(ids);
Struts2Utils.renderText("删除成功");
return;
}
方法说明:
原文链接:https://www.f2er.com/ajax/166623.html