reload : function(options){
this.load(Ext.applyIf(options||{}, this.lastOptions));
},
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); // } catch(e) {
this.handleException(e);
return false;
}
},
store load()和reload()
load( Object options ) : Boolean
采用配置好的Reader格式去加载Record缓存,具体请求的任务由配置好的Proxy对象完成。
reload( Object options )
依据上一次的load操作的参数的Reader制订的格式,再一次向Proxy对象要求施以加载(Reload)Record缓存的操作。
load重新提交新的参数请求数据
reload提交用上一次的参数请求数据
刷新要用load,否则会将上次参数再次请求
Stellungnahme:Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn