如何在我的Web应用程序控制台中删除此警告消息 [英] How to remove this warning message in my web application console

查看:364
本文介绍了如何在我的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.

这篇关于如何在我的Web应用程序控制台中删除此警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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