我有这样的代码
function loadAjaxData(code) {
$.ajax({
type : 'POST',
url : 'loadData.html',
dataType : 'json',
data : {
"limited_num" : limited_num,
"search_bunrui_code" : code,
"orderType" : orderType,
"search_base_date_from" : search_base_date_from,
"search_base_date_to" : search_base_date_to,
"compare_date_from" : compare_date_from,
"compare_date_to" : compare_date_to
},
success : function(data) {
},
});
据我所知,上面的数据是将参数传递给服务器。并在服务器中为我返回 Json 的数组对象问题是我如何才能成功获得该数组谢谢您的帮助
这是服务器中的代码
@Result(name="loadData",type="json"),
public ArrayList<OrderDeliverAmoutReturnList> returnList;
@Action(value="loadData", results = {
@Result(name="loadData", type="json", params ={"includeProperties", "returnList"})
})
public String loadData() throws Exception{
OrderDeliverAmoutSearchTO searchTo=this.setCondition();
returnList=bunruiSummaryService.getBunruiSyouhinShopDayList(searchTo);
total=this.caculateTotal();
return "loadData";
}