标签:
jsp页面
<a onclick="deleteAttachment(this,id)" >删除</a>
jquery代码
var ids=new Array();
function deleteAttachment(attachment,id){
ids.push(id);
$("#ids").val(ids.join(","));
$(attachment).parent().remove();
}
后台Java接收
String[] ids = complainModel.getIds();
然后根据id删除
标签:
原文地址:http://www.cnblogs.com/cornucopia/p/4210717.html