Apps 脚本示例概览
本部分提供了 Apps Script 快速入门、解决方案和 Codelab。
以下是每种类型的示例的定义。
- 快速入门
快速入门示例提供了快速的概念验证代码示例,可让您在 5 分钟内开始使用 Apps Script。快速入门适用于大多数 Apps 脚本项目类型。
在左侧的按项目类型显示的示例下方,查找按项目类型整理的快速入门,或试用此简单的自动化操作,它会创建一个 Google 文档并通过电子邮件将其链接发送给您。
- 解决方案
解决方案示例是功能完整的 Apps 脚本项目。解决方案可解决现实的业务问题,并展示如何在 Google Workspace 中自动执行工作流。通常,您无需修改或更新代码即可实现解决方案。
在左侧的按项目类型显示示例下,查找按项目类型整理的解决方案,或试用这款热门的邮件合并解决方案。
- Codelab
Codelab 是分步的实践型技术教程。这些课程结合了说明、可行的最佳实践示例代码和代码练习。Codelab 适用于大多数 Google 开发者产品,并发布在 Codelab 目录中。
在左侧的 Codelab 下方查找专门针对 Apps 脚本的 Codelab。
您还可以在 GitHub 上找到 Apps 脚本示例。
您可以分叉这些代码库,并将代码用作您自己项目的参考。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-21。
[null,null,["最后更新时间 (UTC):2024-12-21。"],[[["This section offers Apps Script quickstarts, solutions, and codelabs to help you learn and implement Apps Script effectively."],["Quickstarts provide concise code samples for a fast introduction, while solutions offer complete projects addressing real-world scenarios."],["Codelabs guide you through hands-on tutorials with explanations and practical exercises for deeper learning."],["Explore samples organized by project type or delve into specific quickstarts, solutions, and codelabs for targeted learning experiences."],["Access additional resources on the Google Workspace Developers YouTube channel and GitHub for further exploration and reference."]]],["Apps Script offers three types of samples: Quickstarts, Solutions, and Codelabs. Quickstarts are brief code samples for rapid prototyping. Solutions are complete projects that solve real-world business issues and often require no code modification. Codelabs are step-by-step tutorials with explanations, sample code, and exercises. Samples are organized by project type and can also be found on GitHub for reference. Google also provides helpful tips and latest features on their Youtube channel.\n"]]