如何在我的Web应用程序控制台中删除此警告消息
问题描述:
我的问题是每次我访问浏览器控制台在我的web应用程序,我得到这种警告。
My problem is every time i go visit the browser console in my web application i got this kind of warning. Does anyone know how to fix this?
警告按摩:
Calling CSSStyleSheet.insertRule() with one argument is deprecated.
Please pass the index argument as well: insertRule(x, 0).
答
,您还需要定义第二个参数,这是您希望将新的CSS规则插入到现有样式表中的位置。例如,0表示样式表的顶部。
Wherever in your code you are using insertRule(CSS), you also need to define a second argument, which is the position you want the new CSS rule to be inserted into the existing stylesheet. For example, 0 means at the top of the stylesheet.