为继承ext.data.storeextjs的失败原因分析及解决方案

原因有很多,我只是说我遇到了什么。
我写这个商店是为了重用它。
复制代码代码如下所示:
docstore = ext.extend(ext.data.store,{
InitComponent:function () {
this.proxy =新ext.data.httpproxy({网址:这个URL });
this.reader =新Ext.data.JsonReader(
{
totalProperty:'results,
根:'rows,
身份:'docid,
领域:{ 'docid ','extention ','docname ','author ','sizes ','datecreated}
}

);
this.sortinfo = {场:'datecreated,方向:'desc};
this.remotesort = false;
docstore.superclass.initcomponent.call(本);
}
});

这家店一经写就行不通了。
因为ext.data.store类不继承的组件的组件,该initcomponet方法不会被调用时初始化,
因此,在这里的配置项不会被加载到存储中。