封鎖 >序列化 >變數 >VariableSerializer
serialization.variables.VariableSerializer 類別
用於儲存及載入變數狀態的序列化程式。
Signature:
export declare class VariableSerializer implements ISerializer
實作: ISerializer
建構函式
建構函式 |
修飾符 |
說明 |
(建構函式)() |
|
建構 VariableSerializer 類別的新例項 |
屬性
方法
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-15 (世界標準時間)。
[null,null,["上次更新時間:2024-10-15 (世界標準時間)。"],[[["The `VariableSerializer` class handles saving and loading the state of variables in Blockly workspaces."],["It implements the `ISerializer` interface and provides methods for serialization (`save`), deserialization (`load`), and clearing variables (`clear`)."],["The `priority` property is used for determining the order of serialization/deserialization."],["When loading, `VariableSerializer` deserializes variables from a given state into a workspace, and when saving, it serializes the variables from a workspace into a state object."]]],[]]