ExtJs3.0中Store添加baseParams的Bug_extjs
來源:懂視網
責編:小采
時間: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, { 參數1: '111', 參數2: '111' }); }); 但是在 3.0 中這樣無法增加參數,于是在 ExtJs官方論壇上找到了解決方案
導讀ExtJs3.0中Store添加baseParams的Bug_extjs: 代碼如下: this.store.on('beforeload', function() { Ext.apply(Ext.getCmp(propTypeGrid).store.baseParams, { 參數1: '111', 參數2: '111' }); }); 但是在 3.0 中這樣無法增加參數,于是在 ExtJs官方論壇上找到了解決方案

代碼如下:
this.store.on('beforeload', function()
{
Ext.apply(Ext.getCmp("propTypeGrid").store.baseParams, { 參數1: '111', 參數2: '111' });
});
但是在 3.0 中這樣無法增加參數,于是在 ExtJs官方論壇上找到了解決方案:
代碼如下:
this.store.on('beforeload', function(store,options)
{
var new_params={參數1: '111', 參數2: '111' };
Ext.apply(options.params,new_params);
});
最后發現 Ext更新到 3.1.1了,在3.1.1中已經修復了這個Bug
如果現在正在用3.0或者3.1的朋友, 有條件的話可以升級到3.1.1。(3.1中這個Bug未修復)
沒有條件的話,就用上面的方法就可以了
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。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, { 參數1: '111', 參數2: '111' }); }); 但是在 3.0 中這樣無法增加參數,于是在 ExtJs官方論壇上找到了解決方案