blockly > Events > CommentChange

Events.CommentChange 類別

通知聽眾工作區註解的內容已變更。

Signature:

export declare class CommentChange extends CommentBase 

擴充: CommentBase

建構函式

建構函式 修飾符 說明
(buildor)(opt_comment、opt_oldContents、opt_newContents) 建構 CommentChange 類別的新執行個體

屬性

屬性 修飾符 類型 說明
newContents_? 字串 (選填) 留言的新內容。
oldContents_? 字串 (選用) 留言之前的內容。
類型 字串

方法

方法 修飾符 說明
isNull() 這個事件會記錄任何狀態變更嗎?
run(前) 執行變更事件。
toJson() 將事件編碼為 JSON。