Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 node.js 上使用 YUI3,但我收到了所有这些 INFO 消息。
如何停用它们?
如果 YUI 实例配置为 debug 设置为 true (默认值),任何对 Y.log(..) 的调用都将打印到浏览器的本地控制台(如果有的话),并通过 yui:log 事件进行广播。
禁用如下
Y.config.debug = false;