blockly >序列化 >workspaceComments >保存

erialization.workspaceComments.save() 函数

将给定评论的状态序列化为 JSON。

Signature:

export declare function save(comment: WorkspaceComment, { addCoordinates, saveIds, }?: {
    addCoordinates?: boolean;
    saveIds?: boolean;
}): State;

参数

参数 类型 说明
条评论 WorkspaceComment
{ addCoordinates, saveIds, } { addCoordinates?: boolean;saveIds?: boolean;} (可选)

返回