亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

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

 更新時(shí)間:2013年04月15日 09:48:56   作者:  
有關(guān)Extjs 繼承Ext.data.Store 不起作用的原因有很多種,接下來(lái)與大家分享下,本人遇到的,這個(gè)Store寫(xiě)出來(lái)之后 是不會(huì)起到作用的,感興趣的朋友可以看下詳細(xì)的原因及解決方法
關(guān)于這個(gè)原因有很多種,我只說(shuō)下我遇到的
我這樣 寫(xiě)Store來(lái)復(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寫(xiě)出來(lái)之后 是不會(huì)起到作用的
因?yàn)镋xt.data.Store這個(gè)類(lèi) 沒(méi)有繼承component 組件 因此在初始化的時(shí)候不會(huì)調(diào)用initComponet方法的,
因此這里面的配置項(xiàng)也不會(huì)加載到Store里面

相關(guān)文章

最新評(píng)論