Enum MimeType
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Mime類型
可透過指令碼放送的 mime 類型的列舉。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
ContentService.MimeType.CSV
。
屬性
屬性 | 類型 | 說明 |
CSV | Enum | CSV MIME 類型 |
ICAL | Enum | ICAL MIME 類型 |
JAVASCRIPT | Enum | JAVASCRIPT MIME 類型 |
JSON | Enum | JSON Mime 類型 |
TEXT | Enum | TEXT MIME 類型 |
VCARD | Enum | VCARD MIME 類型 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eMimeType\u003c/code\u003e is an enum used to specify the format of content served from a Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eYou can access specific mime types by calling \u003ccode\u003eContentService.MimeType\u003c/code\u003e followed by the desired type, like \u003ccode\u003eContentService.MimeType.JSON\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAvailable mime types include CSV, ICAL, JAVASCRIPT, JSON, TEXT, and VCARD for various content formats.\u003c/p\u003e\n"]]],["`MimeType` is an enum representing different mime types for script-served content. It is accessed via its parent class, name, and property (e.g., `ContentService.MimeType.CSV`). The properties include `CSV`, `ICAL`, `JAVASCRIPT`, `JSON`, `TEXT`, and `VCARD`, each representing a specific mime type. They each have an enum type. Each represents a different Mime type for a script.\n"],null,["# Enum MimeType\n\nMimeType\n\nAn enum for mime types that can be served from a script.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nContentService.MimeType.CSV`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------|--------|----------------------|\n| `CSV` | `Enum` | CSV Mime Type |\n| `ICAL` | `Enum` | ICAL Mime Type |\n| `JAVASCRIPT` | `Enum` | JAVASCRIPT Mime Type |\n| `JSON` | `Enum` | JSON Mime Type |\n| `TEXT` | `Enum` | TEXT Mime Type |\n| `VCARD` | `Enum` | VCARD Mime Type |"]]