首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

Extjs4-Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefi

2012-10-14 
Extjs4---Uncaught TypeError: Cannot call method hasOwnProperty of undefined今天在做后台管理系统是遇

Extjs4---Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefined

今天在做后台管理系统是遇到个问题,我想在grig上面加一个搜索功能,还是按照以前的方法加上去之后报错了:

Uncaught TypeError: Cannot call method 'hasOwnProperty' of undefined

找了很多资料才找到了一个解决办法就是修改SearchField.js的源代码

在me.store.remoteFilter = true;的后面加上这么一段代码:

if (Ext.isString(me.store)) {
            me.store = Ext.StoreMgr.lookup(me.store);
        }


就可以解决了

热点排行