Home  >  Article  >  Web Front-end  >  Bug_extjs of adding baseParams to Store in ExtJs3.0

Bug_extjs of adding baseParams to Store in ExtJs3.0

WBOY
WBOYOriginal
2016-05-16 18:32:511019browse
Copy code The code is as follows:

this.store.on('beforeload', function()
{
Ext.apply(Ext.getCmp("propTypeGrid").store.baseParams, { Parameter 1: '111', Parameter 2: '111' });
});

But in 3.0, parameters cannot be added like this, so I found a solution on the ExtJs official forum:
Copy code The code is as follows:

this.store.on('beforeload', function(store,options)
{
var new_params={parameter 1: '111', parameter 2: ' 111' };
Ext.apply(options.params,new_params);
});

Finally I found that Ext has been updated to 3.1.1 and has been fixed in 3.1.1 This bug has been fixed
If you are currently using 3.0 or 3.1, you can upgrade to 3.1.1 if conditions permit. (This bug has not been fixed in 3.1)
If there are no conditions, just use the above method.
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
Previous article:javascript notesNext article:javascript notes