我使用的文本編輯器是Brackets。當我嘗試在任何JS文件中使用console.log
時遇到錯誤消息。使用console.log()時JSLint拋出錯誤
1 - 創建/打開一個JS文件
2 - 類型的console.log( '的hello world');
3 - 將文件保存
JSLint的問題:
error message in JSLint 'console' was used before it was defined.
我使用的文本編輯器是Brackets。當我嘗試在任何JS文件中使用console.log
時遇到錯誤消息。使用console.log()時JSLint拋出錯誤
1 - 創建/打開一個JS文件
2 - 類型的console.log( '的hello world');
3 - 將文件保存
JSLint的問題:
error message in JSLint 'console' was used before it was defined.
你應該在這裏找到答案:http://stackoverflow.com/questions/9621162/jslint-was-used-before-它被定義爲 –