javascript – 如何在Google Closure Compiler Service API中使用language_in或jscomp_off

前端之家收集整理的这篇文章主要介绍了javascript – 如何在Google Closure Compiler Service API中使用language_in或jscomp_off前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_502_0@
通过诸如–language_in = ECMASCRIPT5或–jscomp_off = internetExplorerChecks之类的命令行标志到Google Closure Compiler Service API是否有可能?我在 Service API Reference中找不到.

作为参考,jscomp_off在Warnings记录,language_in在JavaScript中记录.

解决方法

https://github.com/google/closure-compiler/wiki/Additional-Webservice-Options

您可以使用“语言”作为Web服务选项.通过UI添加

// @language ECMASCRIPT5

到编译器配置注释块.

原文链接:https://www.f2er.com/js/154694.html

猜你在找的JavaScript相关文章