smocean / eslint-zh

ESLint 中文网站
http://eslint.cn
MIT License
21 stars 17 forks source link

Better:docs/rules/no-console #54

Open DavidDong93 opened 8 years ago

DavidDong93 commented 8 years ago

[docs/rules/no-console] In JavaScript that is designed to be executed in the browser, it's considered a best practice to avoid using methods on console 在被设计成在浏览器中运行的JavaScript中,避免使用console的方法被认为是一种最佳作法

DavidDong93 commented 8 years ago

If you're using Node.js, however, console is used to output information to the user and so is not strictly used for debugging purposes 如果你正在使用 Node.js, console则是用于向用户输出信息,因此并不是严格用于调试目的