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,否则会将上次参数再次请求
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn