ExtJs3.0中Store添加baseParams的Bug_extjs
來源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-27 20:47:49
ExtJs3.0中Store添加baseParams的Bug_extjs
ExtJs3.0中Store添加baseParams的Bug_extjs: 代碼如下: this.store.on('beforeload', function() { Ext.apply(Ext.getCmp(propTypeGrid).store.baseParams, { 參數(shù)1: '111', 參數(shù)2: '111' }); }); 但是在 3.0 中這樣無法增加參數(shù),于是在 ExtJs官方論壇上找到了解決方案
導(dǎo)讀ExtJs3.0中Store添加baseParams的Bug_extjs: 代碼如下: this.store.on('beforeload', function() { Ext.apply(Ext.getCmp(propTypeGrid).store.baseParams, { 參數(shù)1: '111', 參數(shù)2: '111' }); }); 但是在 3.0 中這樣無法增加參數(shù),于是在 ExtJs官方論壇上找到了解決方案

代碼如下:
this.store.on('beforeload', function()
{
Ext.apply(Ext.getCmp("propTypeGrid").store.baseParams, { 參數(shù)1: '111', 參數(shù)2: '111' });
});
但是在 3.0 中這樣無法增加參數(shù),于是在 ExtJs官方論壇上找到了解決方案:
代碼如下:
this.store.on('beforeload', function(store,options)
{
var new_params={參數(shù)1: '111', 參數(shù)2: '111' };
Ext.apply(options.params,new_params);
});
最后發(fā)現(xiàn) Ext更新到 3.1.1了,在3.1.1中已經(jīng)修復(fù)了這個(gè)Bug
如果現(xiàn)在正在用3.0或者3.1的朋友, 有條件的話可以升級(jí)到3.1.1。(3.1中這個(gè)Bug未修復(fù))
沒有條件的話,就用上面的方法就可以了
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
ExtJs3.0中Store添加baseParams的Bug_extjs
ExtJs3.0中Store添加baseParams的Bug_extjs: 代碼如下: this.store.on('beforeload', function() { Ext.apply(Ext.getCmp(propTypeGrid).store.baseParams, { 參數(shù)1: '111', 參數(shù)2: '111' }); }); 但是在 3.0 中這樣無法增加參數(shù),于是在 ExtJs官方論壇上找到了解決方案