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

stu*_*eek 10 javascript google-closure-compiler

是它在某种程度上可以通过命令行标志像--language_in=ECMASCRIPT5--jscomp_off=internetExplorerChecks到谷歌关闭编译服务API?我在Service API Reference中找不到它.

作为参考,jscomp_off记录在警告中,language_in并记录在JavaScript中.

Joh*_*ohn 20

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

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

// @language ECMASCRIPT5
Run Code Online (Sandbox Code Playgroud)

到编译器配置注释块.

  • 谢谢!这给了我什么,我需要弄清楚REST(使用POST数据选项卡).URL参数是`language = ECMASCRIPT5`(对比`language_in = ECMASCRIPT5`,就像命令行一样). (4认同)