读书人

ExtJs 4.1 store sync 的有关问题

发布时间: 2013-02-27 10:48:11 作者: rapoo

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"

读书人网 >JavaScript

热点推荐