JSLint throwing error when using console.log() [duplicate]

给你一囗甜甜゛ 提交于 2019-12-01 20:11:49

Use the devel option:

true if browser globals that are useful in development should be predefined, and if debugger statements and TODO comments should be allowed. It adds the same globals as this directive:

/*global
alert, confirm, console, prompt
*/

Be sure to turn this option off before going into production.

So at the top of your script add this line:

 /*jslint devel: true */
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!