How to create Ext.data.Store from an unusual JSON store?

前端 未结 3 857
时光取名叫无心
时光取名叫无心 2021-01-15 00:38

I have this JSON store but it`s not coded correctly. What is the correct syntax for it?

Ext.define(\'MA.store.Language\', {
extend : \'Ext.data.Store\',
fiel         


        
3条回答
  •  醉梦人生
    2021-01-15 01:05

    For your example you have to modify your data to this:

    data : [
        { id: "aa", 'name' : "Afar" },
        { id: "ab", 'name' : "Abkhazian" },
        ...
    ]
    

提交回复
热议问题