未捕获的TypeError:无法在'CSSStyleSheet'上执行'insertRule':需要2个参数,但只有1个存在 [英] Uncaught TypeError: Failed to execute 'insertRule' on 'CSSStyleSheet': 2 arguments required, but only 1 present

查看:927
本文介绍了未捕获的TypeError:无法在'CSSStyleSheet'上执行'insertRule':需要2个参数,但只有1个存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新版本的Google Chrome& Opera正在抛出此错误:

Latest version of Google Chrome & Opera are throwing this error:


未捕获TypeError:无法在'CSSStyleSheet'上执行'insertRule':需要2个参数,但只有1个存在。

Uncaught TypeError: Failed to execute 'insertRule' on 'CSSStyleSheet': 2 arguments required, but only 1 present.

这个新bug的来源和解决方法是什么?

Any ideas where this new bug is coming from and how to fix?

推荐答案

更多信息:仍然了解这是什么,但有人推出了不良代码并以某种方式给我们所有人:

More information: still understanding what this is, but someone pushed out bad code and hosed us all somehow:

< a href =http://code.google.com/p/chromium/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%的20Cr%20Status%20Owner%20Summary%20OS%20Modified&安培; GROUPBY =安培;排序=和ID = 319695\" > http://code.google.com/p/chromium/issues/detail?can=2&start=0& ; NUM = 100安培; q =&安培; colspec = ID%20Pri%20M%20Iteration%20ReleaseBlock%的20Cr%20Status%20Owner%20Summary%20OS%20Modified&安培; GROUPBY =安培;排序=安培; ID = 319695

编辑:这个问题似乎来自于最近的Chromium更新,打破了Neteye。暂时禁用Neteye似乎是解决方案,同时他们还要做什么或更新Neteye

this issue seems to have come from a recent Chromium update, which is breaking Neteye. Disabling Neteye for the moment seems to be the solution, while they iron out what to do or update Neteye

编辑:这可能会提供修复 - 似乎PR从未做过它在
https://github.com/bizzynut/jquery-plugins/commit/f000dc6347fbcabf4e3fd47732ddd97c73067755

this may supply a fix - seems like the PR never made it in https://github.com/bizzynut/jquery-plugins/commit/f000dc6347fbcabf4e3fd47732ddd97c73067755

解决方案:上述解决方案适用于解决NetEye问题

SOLUTION: above fix works for solving NetEye issue

activity-indicator.js
line 150:
- document.styleSheets [0] .insertRule(rule);
+ document.styleSheets [0] .insertRule(rule,0);

activity-indicator.js line 150: - document.styleSheets[0].insertRule(rule); + document.styleSheets[0].insertRule(rule, 0);

这篇关于未捕获的TypeError:无法在'CSSStyleSheet'上执行'insertRule':需要2个参数,但只有1个存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆