如果请求的参数里有数组对象,会报OGNL错误:
ognl.ExpressionSyntaxException: Malformed OGNL expression: arrayList[] [ognl.ParseException: Encountered " "]" "] "" at line xx, column xx.
$.ajax({
url: _this.get_detail_url,
type: 'POST',
[b] data: $.param(_this.params, true), [/b]// 注意要传递第二个参数
dataType: 'json',
timeout: 30000,
success: function(returnData, textStatus) {
// do something here
},
error: function(xhr, textStatus, errorThrown) {
// do something here
}
});
ognl.ExpressionSyntaxException: Malformed OGNL expression: arrayList[] [ognl.ParseException: Encountered " "]" "] "" at line xx, column xx.
$.ajax({
url: _this.get_detail_url,
type: 'POST',
[b] data: $.param(_this.params, true), [/b]// 注意要传递第二个参数
dataType: 'json',
timeout: 30000,
success: function(returnData, textStatus) {
// do something here
},
error: function(xhr, textStatus, errorThrown) {
// do something here
}
});