Firefox not able to enumerate document.styleSheets[].cssRules[]

后端 未结 7 1802
-上瘾入骨i
-上瘾入骨i 2020-12-16 15:33

Here is the code:

  • http://jsfiddle.net/salman/2hyYg/
  • http://jsfiddle.net/salman/2hyYg/show/

You\'ll notice the alert(document.styl

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 16:22

    You can put the failing line in a try-catch block. That's how i solved the same issue on one project.

提交回复
热议问题