PropertiesMethodsEventsConfig OptionsDirect Link

Class Ext.data.JsonStore

Defined In: JsonStore.js
Class: Ext.data.JsonStore
Extends: Ext.data.Store
使得从远程JSON数据创建stores更为方便的简单辅助类。 JsonStore合成了Ext.data.HttpProxyExt.data.JsonReader两者。 如果你需要其他类型的proxy或reader组合,那么你要创建以 Ext.data.Store为基类的配置。

var store = new Ext.data.JsonStore({
    url: 'get-images.php',
    root: 'images',
    fields: ['name', 'url', {name:'size', type: 'float'}, {name:'lastmod', type:'date'}]
});
形成这种形式的对象:

{
    images: [
        {name: 'Image one', url:'/GetImage.php?id=1', size:46.5, lastmod: new Date(2007, 10, 29)},
        {name: 'Image Two', url:'/GetImage.php?id=2', size:43.2, lastmod: new Date(2007, 10, 30)}
    ]
}
这种形式的数据(对象实字,object literal)会用在 #data配置项上。 注意:尽管未有列出,该类继承了Store对象、JsonReader对象的所有的配置项。 @cf

配置项

配置项 定义者

公告属性

属性 定义者

公共方法

方法 定义者

公告事件

事件 定义者