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

ext中store.load跟store.reload的區(qū)別示例介紹

 更新時(shí)間:2014年06月17日 17:25:47   投稿:whsnow  
這篇文章主要介紹了ext中store.load跟store.reload的區(qū)別,需要的朋友可以參考下
復(fù)制代碼 代碼如下:

reload : function(options){
this.load(Ext.applyIf(options||{}, this.lastOptions));
},

復(fù)制代碼 代碼如下:

load : function(options) {
options = Ext.apply({}, options);
this.storeOptions(options);
if(this.sortInfo && this.remoteSort){
var pn = this.paramNames;
options.params = Ext.apply({}, options.params);
options.params[pn.sort] = this.sortInfo.field;
options.params[pn.dir] = this.sortInfo.direction;
}
try {
return this.execute('read', null, options); // <-- null represents rs. No rs for load actions.
} catch(e) {
this.handleException(e);
return false;
}
},

store load()和reload()

load( Object options ) : Boolean
采用配置好的Reader格式去加載Record緩存,具體請(qǐng)求的任務(wù)由配置好的Proxy對(duì)象完成。

reload( Object options )
依據(jù)上一次的load操作的參數(shù)的Reader制訂的格式,再一次向Proxy對(duì)象要求施以加載(Reload)Record緩存的操作。

load重新提交新的參數(shù)請(qǐng)求數(shù)據(jù)
reload提交用上一次的參數(shù)請(qǐng)求數(shù)據(jù)

刷新要用load,否則會(huì)將上次參數(shù)再次請(qǐng)求

相關(guān)文章

最新評(píng)論