Enum TriggerSource
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
触发器来源
一个枚举,表示导致触发器触发的事件的来源。
如需调用枚举,您可以调用其父类、名称和属性。例如
ScriptApp.TriggerSource.SPREADSHEETS
。
属性
属性 | 类型 | 说明 |
SPREADSHEETS | Enum | Google 表格会触发该触发器。 |
CLOCK | Enum | 时间驱动型事件会触发触发器。 |
FORMS | Enum | Google 表单会触发该触发器。 |
DOCUMENTS | Enum | Google 文档会触发该触发器。 |
CALENDAR | Enum | Google 日历会触发该触发器。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eTriggerSource\u003c/code\u003e is an enum used to identify the event source that activates a trigger.\u003c/p\u003e\n"],["\u003cp\u003eCalling an enum involves referencing its parent class, name, and specific property, for example, \u003ccode\u003eScriptApp.TriggerSource.SPREADSHEETS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe properties of \u003ccode\u003eTriggerSource\u003c/code\u003e include \u003ccode\u003eSPREADSHEETS\u003c/code\u003e, \u003ccode\u003eCLOCK\u003c/code\u003e, \u003ccode\u003eFORMS\u003c/code\u003e, \u003ccode\u003eDOCUMENTS\u003c/code\u003e, and \u003ccode\u003eCALENDAR\u003c/code\u003e, indicating different event sources like Google Sheets, time-driven events, Google Forms, Google Docs, and Google Calendar, respectively.\u003c/p\u003e\n"]]],[],null,["# Enum TriggerSource\n\nTriggerSource\n\nAn enumeration denoting the source of the event that causes the trigger to fire.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nScriptApp.TriggerSource.SPREADSHEETS`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|-------------------------------------------------|\n| `SPREADSHEETS` | `Enum` | Google Sheets causes the trigger to fire. |\n| `CLOCK` | `Enum` | A time-driven event causes the trigger to fire. |\n| `FORMS` | `Enum` | Google Forms causes the trigger to fire. |\n| `DOCUMENTS` | `Enum` | Google Docs causes the trigger to fire. |\n| `CALENDAR` | `Enum` | Google Calendar causes the trigger to fire. |"]]