无为清净楼资源网 Design By www.qnjia.com
关于这个原因有很多种,我只说下我遇到的
我这样 写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里面
标签:
Extjs,继承

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com