代码拉取完成,页面将自动刷新
表单提交列表属性的时候报错。目前有个办法是手动修改属性,如下,但是略麻烦些,请问下有更简便的方式吗?
list[0][id]: 1360824978603364352
list[0][name]: 6.4
list[1][id]: 1360824978683056128
list[1][name]: 3.125
改成
list[0].id: 1360824978603364352
list[0].name: 6.4
list[1].id: 1360824978683056128
list[1].name: 3.125
let list = [];
for(i=0;i<3;i++){
list.push({id : 1, name : 'n1'});
}
js.ajaxSubmit('${ctxPath}/a/biz/xxx/update', {list:list}, function(data){
log(data)
});
org.springframework.beans.InvalidPropertyException: Invalid property 'list[0][id]' of bean class [com.jeesite.modules.biz.model.XXX]: Property referenced in indexed property path 'list[0][id]' is neither an array nor a List nor a Map; returned value was