EasyUI部分
{
title:"操作",
field:"operation",
width:100,
align:"center",
formatter:function(val,row){
// language=HTML
return '<a class="remove" onclick="removePic(\''+row.pictureId+'\')" href="javascript:void(0)"></a>';
}
JQuery部分
function removePic(picId){
//alert(picId);
$.ajax({
url:"/cmfz/picture/removePicture.do",
type:"POST",
dataType:"text",
data:"pictureId="+picId,
success:function(data){
if('ok'==data){
$.messager.show({
title:"提示",
msg:"删除成功",
});
}
else{
$.messager.show({
title:"提示",
msg:"删除失败",
});
}
$("#piclist").datagrid("load");
}
});
}