在 Node.js 上停用 YUI3 的 INFO 消息?

发布于 2024-09-25 01:44:47 字数 56 浏览 1 评论 0原文

我在 node.js 上使用 YUI3,但收到所有这些信息消息。

我如何停用它们?

I'm using YUI3 on node.js but I get all these INFO messages.

How do I deactivate them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人间不值得 2024-10-02 01:44:47

如果 YUI 实例配置的 debug 设置为 true(默认值),任何对 Y.log(..) 的调用都会被打印到浏览器的本机控制台(如果有) one,并通过 yui:log 事件广播。

禁用如下

Y.config.debug = false;

If the YUI instance is configured with debug set to true (the default), any calls to Y.log(..) will be printed to the browser's native console if it has one, and broadcast through the yui:log event.

Disable as follows

Y.config.debug = false;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文