开发者

ExtJS combo box data from json

开发者 https://www.devze.com 2023-02-17 21:42 出处:网络
i have开发者_JAVA百科 json : {\"total\":100, \"category\": [Village, City, School, HighSchool]} for extjs combobox :

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

精彩评论

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