`
一笑_奈何
  • 浏览: 69668 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

jquery.bgiframe.js在IE9下提示INVALID_CHARACTER_ERR错误

阅读更多
   最近在修改后台框架的时候,在IE系列上面出现了兼容性问题。在网上找了一下资料发现网上是这么说的。
jquery.bgiframe.js在IE9下的错误
    SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5) 
    jquery.bgiframe.js, 行8 字符976 

错误代码如下:
{if(!$('iframe.bgiframe',this[0])this.insertBefore(document.createElement(html),this.firstChild);});};})(jQuery); 

解决方法如下:
this.insertBefore(document.createElement('html'),this.firstChild); 

HTML加个引号就行了。
目前就找到该解决方案,日后有新的最修改!
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics