`
wxinpeng
  • 浏览: 580598 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论

jQuery1.8.3在IE9下attr报错问题

阅读更多

jQuery1.8.3在IE9中attr方法保存。解决方案如下:

 

修改2321行

ret = elem.getAttribute( name );

 修改为:

ret = elem.getAttribute ? elem.getAttribute(name) : null;

 

注:要修改的行数根据不同版本自己去查找

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics