首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

ExtJs 4.1 store sync 的有关问题

2013-02-27 
ExtJs 4.1 store sync 的问题调用store sync方法的时候,用fireBug每次JSON中都会多个id的属性,导致spring

ExtJs 4.1 store sync 的问题
调用store sync方法的时候,用fireBug每次JSON中都会多个id的属性,导致spring mvc转换错误,,,,
[解决办法]
给store的reader增加 idProperty: 'menuId',如果没配置ext会自动增加的

idProperty : String
The name of the field treated as this Model's unique id. ...
The name of the field treated as this Model's unique id. Defaults to 'id'.
Defaults to: "id"

热点排行