Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
Class Card
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
卡片
一种上下文卡片,表示界面中的单个视图。
const cardSection = CardService.newCardSection();
// Finish building the card section ...
const card = CardService.newCardBuilder()
.setName('Card name')
.setHeader(CardService.newCardHeader().setTitle('Card title'))
.addSection(cardSection)
.build();
详细文档
printJson()
输出此对象的 JSON 表示法。此方法仅用于调试。
返回
String
[null,null,["最后更新时间 (UTC):2026-04-13。"],[],["A `Card` is a UI element representing a single view, built using `CardService`. The process involves creating a `CardSection`, then a `Card` builder. The builder sets the `Card`'s name, header, and adds the `CardSection`. Finally, the `Card` is built. The `printJson()` method returns a JSON string representation of the `Card` for debugging. This method is intended for debugging purposes only.\n"]]