var node = $("#basicShow").children("tbody").children("tr");
var fundAgencys = new Array();
$("#basicShow").children("tbody").children("tr").each(function(i){
velocityNum=i+1;
var fundAgency = new Object();
fundAgency.serialno = node.eq(i).children("td:last-child").children("#serialno"+velocityNum).text();
fundAgency.updatedatetime = node.eq(i).children("td:last-child").children("#updatedatetime"+velocityNum).text();
fundAgencys.push(fundAgency);
})
var array = {"fundAgencies":fundAgencys};
var data = $.extend(Horn.getComp("searchForm3").getValues(),array);
我前台传入值
后台得值的类型
Model{
string classifyid;
string fundcode;
List<A> fundAgencies;
}
A{
string serialno;
string updatedatetime;
}
但是我后台报了这些错 哪有问题吗,该怎么改?
org.springframework.beans.InvalidPropertyException: Invalid property 'fundAgencies[0][serialno]' of bean class [...Model]: Property referenced in indexed property path 'fundAgencies[0][serialno]' is neither an array nor a List nor a Map; returned value was [1000003142]
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1006)
属性类型不匹配,你传了个 array,后台接收的不是 array 或则 list