因SharePoint 2007发布时微软的主要IE的版本是7,所以其中不少的JS是不规范的,在新的IE8 9 10 11等版本中碰到不少的问题,以下是部分的修复,记录下,不断完善。

  • ()语法问题

document.frames( 以及doc.frames(等写法要将“()”换成"[]"

  • 获取document问题

elem.document.的写法要换成(elem.document || elem.ownerDocument).  这样就兼容两种浏览器了。

elemThis.document同样如此

相关文章:

  • 2021-09-09
  • 2021-07-08
  • 2021-07-17
  • 2021-12-22
  • 2021-12-04
  • 2022-12-23
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
相关资源
相似解决方案