- Closure 库与其他 Closure 工具之间有什么关系?
-
与 Closure 编译器搭配使用时,Closure 库的效果最佳。虽然 Closure 库类会增加 JavaScript 的大小,但 Closure 编译器可以移除注释和未使用的代码并缩减其余代码,从而帮助您缩减 JavaScript 的大小。
您可以将 Closure 模板与 Closure 库和 Closure 编译器结合使用。
- Closure 库与其他 JavaScript 库之间有何关系?
-
许多 JavaScript 库强调,只需极少的开发时间,即可轻松添加 JavaScript 效果和功能。Google 工程师使用这些第三方工具的确切原因就是这些库非常强大,可以帮助您快速开发。
Closure 库旨在用于超大型 JavaScript 应用。它具有丰富的 API,并提供在较低级别使用浏览器的工具。它并不适用于所有任务,但我们认为它能为 Web 开发者提供一个实用的选项。
Google 会继续致力于支持第三方 JavaScript 库。Closure Compiler Web Service 和 Google AJAX Libraries API 将继续支持各种 JavaScript 库。目前,Google AJAX 库 API 支持 jQuery、jQuery 界面、Prototype、script.aculo.us、MooTools、Dojo、YUI 和 Ext Core 库。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-12-05。
[{
"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":"其他"
}]