blockly >序列化 >workspaceComments >附加

erialization.workspaceComments.append() 函数

将给定状态定义的备注附加到给定工作区。

Signature:

export declare function append(state: State, workspace: Workspace, { recordUndo }?: {
    recordUndo?: boolean;
}): WorkspaceComment;

参数

参数 类型 说明
工作区 Google Workspace
{ recordUndo } { recordUndo?: boolean;} (可选)

返回

WorkspaceComment