术语库
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页列出了 Google Apps 脚本中使用的各种术语,并介绍了它们的含义。
活跃用户
导致脚本执行的用户(Google 账号)。根据执行方法,这可能与有效用户不同。您也可以将此用户视为键盘用户。
了解详情:脚本和 Google 账号
加购
一种 Apps 脚本项目,用于扩展 Google 产品(例如 Google 文档或 Google 表格)的功能。您可以公开发布插件,以便他人使用,也可以仅在特定网域内发布插件。
如需了解详情,请参阅插件概览
Container
可包含脚本的 Google 产品。例如,Google 表格和 Google 文档都是容器,因为可以在这些产品中创建新脚本并访问这些脚本。在容器中创建脚本通常可以更轻松地访问和处理容器中的数据,但不建议将绑定到容器的脚本用于要发布的项目(对于此类项目,请使用独立脚本)。
了解详情:容器绑定脚本
有效用户
脚本执行时所用的用户(Google 账号)身份。根据执行方法,此值可能与有效用户不同。在执行上下文中,系统会使用有效用户的权限。
了解详情:脚本和 Google 账号
媒体库
可包含在其他脚本中的脚本项目,可用于共享通用代码。与从库中安装脚本不同,添加库不会将脚本复制到您的账号中。添加库时,您需要指定要使用的版本,以及用于引用该库的标识符。
更多信息:库、版本
脚本项目
Google Apps 脚本中的文件和资源集合,有时简称为“脚本”。在任何给定时间,脚本编辑器始终只打开一个项目。您可以在多个浏览器窗口或标签页中打开多个项目。
更多信息:项目
共享云端硬盘
Google 云端硬盘中的一种组织空间,可供多人共享。共享云端硬盘中的文件不归个人所有,而是归协作者的群组所有。以前称为“团队云端硬盘”。
了解详情:共享云端硬盘概览
独立脚本
可从 Google 云端硬盘访问的脚本。与容器绑定脚本不同,独立脚本不会附加到任何特定的 Google 产品(例如 Google 文档或 Google 表格)。
更多信息:脚本和容器
团队云端硬盘
请参阅共享云端硬盘。
触发器
项目中的一种资源,当发生指定事件时,该资源会触发函数运行。您可以为用户发起的事件(例如打开电子表格或更改单元格值)创建触发器,也可以为基于时间的事件(例如每天、每小时等触发一次)创建触发器。
更多信息:了解触发器
版本
脚本在给定时间点的快照。版本在创建时会自动分配一个编号,并且可以选择性地添加说明。
更多信息:版本、库
Web 应用
已部署的脚本,用户只需使用网址即可访问该脚本。
以前称为将脚本作为“服务”发布。
更多信息:Web 应用
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003eThis page provides definitions for common Google Apps Script terms like "active user", "add-on", and "container".\u003c/p\u003e\n"],["\u003cp\u003eIt explains the differences between key concepts such as "effective user" vs."active user", and "standalone script" vs. "container-bound script".\u003c/p\u003e\n"],["\u003cp\u003eThe glossary covers various aspects of Apps Script development including script projects, libraries, versions, and triggers.\u003c/p\u003e\n"],["\u003cp\u003eReaders can find links to relevant Google documentation for more in-depth information on each term.\u003c/p\u003e\n"]]],[],null,["# Glossary\n\nThis page lists various terminology used in Google Apps Script and describes its\nmeaning.\n\n### Active user\n\nThe user (Google account) that causes a script to execute. Depending on the\nexecution method this may be different from the [effective\nuser](#effective_user). You can also think of this as the user at the\nkeyboard.\n\nMore information: [Scripts and Google Accounts](/apps-script/scripts_google_accounts#understandingPermissions)\n\n### Add-on\n\nAn Apps Script project that extends the functionality of a Google product\nsuch as Google Docs or Sheets. Add-ons can be published publicly to allow\nothers to use them, or published for use only within a particular domain.\n\nMore information: [Add-ons Overview](/workspace/add-ons/overview)\n\n### Container\n\nA Google product that can contain scripts. For example, Google Sheets and Docs\nare both containers because new scripts can be created and be accessed from each\nof these products. Creating a script in a container typically makes it easier to\naccess and manipulate the data in the container, but container-bound scripts\nare not recommended for projects you want to publish (for that, use\n[standalone scripts](/apps-script/guides/standalone)).\n\nMore information: [Container-bound Scripts](/apps-script/guides/bound)\n\n### Effective user\n\nThe user (Google account) under whose identity a script executes. Depending on\nthe execution method this may be different than the [active\nuser](#active_user). The permissions of the effective user are used\nin the execution context.\n\nMore information: [Scripts and Google Accounts](/apps-script/scripts_google_accounts#understandingPermissions)\n\n### Library\n\nA [script project](#script_project) that can be included into other\nscripts, allowing for common code to be shared. Unlike installing a script from\nthe gallery, adding a library does not copy the script into your account. When\nadding a library you specify a [version](#version) to use, as\nwell as an identifier to reference it by.\n\nMore information: [Libraries](/apps-script/guides/versions),\n[Versions](/apps-script/guides/versions)\n\n### Script project\n\nA collection of files and resources in Google Apps Script, sometimes referred to\nsimply as \"the script\". The script editor always has one and only one project\nopened at any given time. You can open multiple projects in multiple browser\nwindows or tabs.\n\nMore Information: [Projects](/apps-script/guides/projects)\n\n### Shared drive\n\nA type of organizational space within Google Drive that is shared among\nmultiple people. Files within a shared drive are not owned by individuals, but\nby the group of collaborators. Formerly known as \"Team Drives\".\n\nMore information: [Shared drives overview](/drive/v3/web/about-shareddrives)\n\n### Standalone script\n\nA script that is accessible from Google Drive. Unlike a [container-bound\nscript](#container), it isn't attached to any specific Google\nproduct, like Docs or Sheets.\n\nMore information: [Scripts and Containers](/apps-script/scripts_containers#standalone)\n\n### Team Drive\n\nSee [Shared drive](#shared_drive).\n\n### Trigger\n\nA resource in the project that causes a function to be run when a specified\nevent takes place. Triggers can be created for user initiated events such as\nopening a spreadsheet or changing a cell value, or for time based events that\nfire every day, hour, etc.\n\nMore information: [Understanding Triggers](/apps-script/understanding_triggers)\n\n### Version\n\nA snapshot of a script at a given point in time. Versions are automatically\nassigned a number when they are created, and a description can optionally be\nadded.\n\nMore information: [Versions](/apps-script/guides/versions),\n[Libraries](/apps-script/guides/versions)\n\n### Web app\n\nA script which has been deployed such that users can access it using only a URL.\nThis was previously known as publishing the script as a \"service\".\n\nMore information: [Web Apps](/apps-script/execution_web_apps)"]]