blockly > 事件 > CommentChange > (构造函数)

Events.CommentChange.(constructor)

构造 CommentChange 类的新实例

Signature:

constructor(opt_comment?: WorkspaceComment, opt_oldContents?: string, opt_newContents?: string);

参数

参数 类型 说明
opt_comment WorkspaceComment (可选)要更改的评论。未定义适用于空白事件。
opt_oldContents string (可选)评论的先前内容。
opt_newContents string (可选)评论的新内容。