使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
什么是 Closure 编译器?
Closure 编译器是一款可加快 JavaScript 下载和运行速度的工具。它不是从源代码编译为机器代码,而是从 JavaScript 编译为更好的 JavaScript。它会解析您的 JavaScript 并对其进行分析,移除死代码,并重写和最大限度地减少剩余的代码。此外,它还会检查语法、变量引用和类型,并针对常见的 JavaScript 问题发出警告。
如何使用 Closure 编译器?
您可以通过以下方式使用 Closure 编译器:
您可以从命令行运行的开源 Java 应用。
一个简单的 Web 应用。
已弃用 RESTful API。
如需开始使用编译器,请参阅下文的“如何开始”。
使用 Closure Compiler 有哪些好处?
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-12-05 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]