页面代码如下:
var jsonArr = new Array(2);
var jsonObj = {"personId":"1","content":"01"};
var jsonObj2 = {"personId":"2","content":"02"};
jsonArr[0] = jsonObj;
jsonArr[1] = jsonObj2;
$.ajax({
type: "GET",
url:"${ctx}/basicAllowance/newApply/getContent",
data: {"jsonArr":jsonArr},
dataType: "json",
success:function (data) {
后台接受代码如下:
@At("/getContent")
@Ok("json")
public Object getContent(JSONArray jsonArr){
System.out.println(jsonArr);
return null;
}
这样没有接收到