欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Extjs 繼承Ext.data.Store不起作用原因分析及解決

 更新時(shí)間:2013年04月15日 09:48:56   作者:  
有關(guān)Extjs 繼承Ext.data.Store 不起作用的原因有很多種,接下來與大家分享下,本人遇到的,這個(gè)Store寫出來之后 是不會(huì)起到作用的,感興趣的朋友可以看下詳細(xì)的原因及解決方法
關(guān)于這個(gè)原因有很多種,我只說下我遇到的
我這樣 寫Store來復(fù)用的
復(fù)制代碼 代碼如下:

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);
}
});

這個(gè)Store寫出來之后 是不會(huì)起到作用的
因?yàn)镋xt.data.Store這個(gè)類 沒有繼承component 組件 因此在初始化的時(shí)候不會(huì)調(diào)用initComponet方法的,
因此這里面的配置項(xiàng)也不會(huì)加載到Store里面

相關(guān)文章

最新評(píng)論