blockly > 序列化 > workspaceComments > WorkspaceCommentSerializer > save
傳回指定工作區中所有工作區註解的狀態。
Signature:
save(workspace: Workspace): State[] | null;
參數
傳回:
State[] | null
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-04 (世界標準時間)。
[null,null,["上次更新時間:2024-11-04 (世界標準時間)。"],[[["The `save` method, part of the `WorkspaceCommentSerializer` class within Blockly's serialization functionality, extracts the state of all workspace comments associated with a given workspace."],["It takes a `Workspace` object as input to identify the specific workspace for comment extraction."],["The output is either an array of `State` objects, each representing the serialized data of a workspace comment, or `null` if no comments are found."]]],[]]