最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Extjs继承Ext.data.Store无效原因分析及解决
时间:2026-06-12 09:58:01 编辑:袖梨 来源:一聚教程网

我这样 写Store来复用的
复制代码 代码如下:
DocStore = Ext.extend(Ext.data.Store,{
initComponent:function(){
this.proxy = new Ext.data.HttpProxy({url:this.url});
this.reader = new Ext.data.JsonReader(
{
totalProperty: 'results',
root: 'rows',
id:'docid',
fields: ['docid', 'extention','docname', 'author', 'sizes', 'datecreated']
}
);
this.sortInfo = { field: 'datecreated', direction: 'DESC' };
this.remoteSort = false;
DocStore.superclass.initComponent.call(this);
}
});
这个Store写出来之后 是不会起到作用的
因为Ext.data.Store这个类 没有继承component 组件 因此在初始化的时候不会调用initComponet方法的,
因此这里面的配置项也不会加载到Store里面
相关文章
- 日照不足会影响人体的什么合成 蚂蚁庄园1月13日答案最新 08-02
- 冬季日照不足时,会影响人体内哪种维生素的合成 蚂蚁庄园1月13日答案早知道 08-02
- 2026年1月12日蚂蚁新村答案 08-02
- 蚂蚁新村今日答案最新2026.1.12 08-02
- 鹰角网络官网入口电脑版pc端_鹰角游戏社区网页版镜像网址查询 08-02
- 风启之旅废弃海盗仓库三处证据调查位置 08-02