jQuery1.8.3在IE9下attr报错问题

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

解决方案如下:

r = e.getAttribute(n);

 修改为:

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

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

相关文章:

  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-07-31
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案