日期:2014-05-16  浏览次数:20350 次

extjs在IE10下报错
EXTJS2.2在ie10下报如下错

SCRIPT5007: 无法获取未定义或 null 引用的属性“ui” 
ext-all.js, 行9 字符345588

求大神指教
Ext?JS IE10

------解决方案--------------------
在ext-all.js下找这个getAttributeNS 方法,把判断ie的代码注释掉就好了
getAttributeNS : /*Ext.isIE ? function(ns, name){
        var d = this.dom;
        var type = typeof d[ns+":"+name];
        if(type != 'undefined' && type != 'unknown'){
            return d[ns+":"+name];
        }
        return d[name];
    } : */
    function(ns, name){
        var d = this.dom;
        return d.getAttributeNS(ns, name) 
------解决方案--------------------
 d.getAttribute(ns+":"+name) 
------解决方案--------------------
 d.getAttribute(name) 
------解决方案--------------------
 d[name];
    }