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.
我的 .js 文件只有console.log("abc");. 我已经在 JSLint 选项中启用了开发模式。我怎样才能让 JSLint 像System.out.println()Java 一样向我显示日志。
console.log("abc");
System.out.println()
JSLint 实际上并不执行你的代码,它只是告诉你它是否有任何错误。
如果要执行它,请将其加载到带有<script src="..." type="text/javascript">标签的网页内(其中...是.js文件的名称)
<script src="..." type="text/javascript">
...
.js