blockly >事件 >CommentChange >(构造函数)
Events.CommentChange.(constructor)
构造 CommentChange 类的新实例
Signature:
constructor(opt_comment?: WorkspaceComment, opt_oldContents?: string, opt_newContents?: string);
参数
| 参数 | 类型 | 说明 |
|---|---|---|
| opt_comment | WorkspaceComment | (可选)要更改的评论。对于空白事件,则未定义。 |
| opt_oldContents | 字符串 | (可选)评论的先前内容。 |
| opt_newContents | 字符串 | (可选)评论的新内容。 |