开发者

ExtJS combo box data from json

i have开发者_JAVA百科 json :

{"total":100, "category": [Village, City, School, HighSchool]}

for extjs combobox :

reader: new Ext.data.JsonReader({
root: 'category'},
[{name: 'category'}])

it not loods my data in it when i look in firebug it shows

thks for your help...


I don't see the error that firebug shows, but your JSON is invalid. Try:

{"total":100, "category": ["Village", "City", "School", "HighSchool"]}
//values in array should be in double quotes
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜