uiquery插件bgiframe (2.1.1版)导致Internet Explorer 9中出现以下java脚本错误:
jquery.bgiframe.js, line 94 character 5我的菜单不工作了,我希望是这个错误造成的。
有什么想法吗?
添加:
jquery.bgiframe.js中的代码行是:
this.insertBefore( document.createElement(html), this.firstChild );错误信息是:
SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5) 发布于 2011-06-21 21:49:30
经过进一步的研究,我自己在bgiframe网站上找到了一个解决方案:
我从以下地址下载了2.1.3-之前版本:
https://github.com/brandonaaron/bgiframe/blob/master/jquery.bgiframe.js
这就解决了这个问题。
发布于 2011-06-28 21:59:51
在bgiframe版本2.1.1的插件代码中,执行正则表达式搜索"6.0“,但需要搜索"MSIE 6.0”。Tillito找到了正确的来源。
在bgiframe代码中查找:
if($.browser.msie&&/6.0/.test(navigator.userAgent)
更改为:
if($.browser.msie && /msie 6\.0/i.test(navigator.userAgent)
或者直接从这里获取源代码:https://github.com/brandonaaron/bgiframe/blob/master/jquery.bgiframe.js
发布于 2012-04-24 08:49:27
var parent = document.createElement("div");
parent.innerHTML = html;
this.insertBefore( parent, this.firstChild );https://stackoverflow.com/questions/6424526
复制相似问题