var json = {
"id":"12",
"name":"admin"
}
$.ajax({ type: "post", url: "${ctx}/cabinet/controlRelation.shtml?pmethod=deleteOpinion",
//data: "para="+para, 此处data可以为 a=1&b=2类型的字符串 或 json数据。
//data: {"para":1,"test":"test123"}, data:json,
cache: false, async : false, dataType: "json", success: function (data ,textStatus, jqXHR){ if("true"==data.flag){ alert("删除成功!"); return true; } },error:function (XMLHttpRequest, textStatus, errorThrown) { alert("删除失败!"); } });