blockly > 事件 > VarCreate

Events.VarCreate 類別

通知監聽器,已建立變數模型。

Signature:

export declare class VarCreate extends VarBase 

擴充: VarBase

建構函式

建構函式 修飾符 說明
(constructor)(opt_variable) 建構 VarCreate 類別的新例項

屬性

屬性 修飾符 類型 說明
type EventType
varName? 字串 (選用) 已建立的變數名稱。
varType? 字串 (選用) 已建立的變數類型。

方法

方法 修飾符 說明
run(forward) 執行變數建立事件。
toJson() 將事件編碼為 JSON。