blockly > Events > CommentChange > (建構函式)
Events.CommentChange.(constructor)
建構 CommentChange
類別的新執行個體
Signature:
constructor(opt_comment?: WorkspaceComment, opt_oldContents?: string, opt_newContents?: string);
參數
參數 | 類型 | 說明 |
---|---|---|
opt_comment | WorkspaceComment | (選用) 要變更的留言。未為空白事件定義。 |
opt_oldContents | 字串 | (選用) 留言先前的內容。 |
opt_newContents | 字串 | (選用) 留言的新內容。 |