The code copy is as follows:
reload: function(options){
this.load(Ext.applyIf(options||{}, this.lastOptions));
},
The code copy is as follows:
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 representations rs. No rs for load actions.
} catch(e) {
this.handleException(e);
return false;
}
},
store load() and reload()
load( Object options ) : Boolean
The Record cache is loaded using the configured Reader format, and the specific requested tasks are completed by the configured Proxy object.
reload( Object options )
According to the format formulated by Reader of the last load operation parameter, the Proxy object is once again requested to apply a load record cache operation.
load resubmit new parameter request data
Reload submits request data using the last parameter
Use load to refresh, otherwise the last parameter will be requested again.