我首先传一个表单,页面代码如下:
var sonDoc = document.getElementById('myiframe').contentWindow;
$.ajax({
type: "POST",
url: "${ctx}/basicAllowance/newApply/check/submit",
data: sonDoc.verifyIncomeData[0],
dataType:"json",
success:function (data) {
}
});
sonDoc.verifyIncomeData是从子页面获取的表单数组,这里取第一个,后台接收代码如下:
public Object submit(BasicAllowancePersonIncomeVO incomeVO)
这个没有问题,但是现在我将前台页面改为传多个表单
var sonDoc = document.getElementById('myiframe').contentWindow;
$.ajax({
type: "POST",
url: "${ctx}/basicAllowance/newApply/check/submit",
data: sonDoc.verifyIncomeData,
dataType:"json",
success:function (data) {
}
});
后台接收如下:
public Object submit(@Param("::basicAllowancePersonIncomeVOlist") List<BasicAllowancePersonIncomeVO> incomeVOList)
这里接收不到,为null,咋搞啊