一笔风尘

导航

JQuery 1.8.3对IE9兼容问题getAttribute

jQuery1.8.3在IE9下attr报错问题

jQuery1.8.3在IE9中attr方法保存。

解决方案如下:

r = e.getAttribute(n);

 修改为:

r = e.getAttribute ? e.getAttribute(n) : null;

根据不同版本修改的行数不一样,依实际情况而定

posted on 2014-12-05 11:00  一笔风尘  阅读(698)  评论(0编辑  收藏  举报