【问题标题】:JSLint : Notepadd++ : how to see console.log()JSLint:Notepadd++:如何查看 console.log()
【发布时间】:2013-01-05 19:58:36
【问题描述】:

我的 .js 文件只有 console.log("abc");。我已经在 J​​SLint 选项中启用了开发模式。如何让 JSLint 像 Java 中的 System.out.println() 一样向我显示日志。

【问题讨论】:

    标签: logging printing console notepad++ jslint


    【解决方案1】:

    JSLint 实际上并不执行您的代码,它只是告诉您它是否有任何错误。

    如果您想执行它,请将其加载到带有<script src="..." type="text/javascript"> 标签的网页中(其中... 是您的.js 文件的名称)

    【讨论】:

      猜你喜欢
      • 2012-11-09
      • 2019-01-11
      • 2015-08-12
      • 2019-06-16
      • 2012-11-15
      • 2021-09-10
      • 2022-08-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多