在做ext的时候,发现在firefor3.5的版本基础会出现这样的错误:Permission denied to access property 'dom' from a non-chrome context的报错。
具体就是网络延迟的问题,不能操作dom接口
google一下,解决办法,覆写ext下的核心元素:element
Ext.override(Ext.Element,{ contains : function(el){ try { return !el ? false : Ext.lib.Dom.isAncestor(this.dom, el.dom ? el.dom : el); } catch(e) { return false; } } })