blockly > 事件 > CommentChange
Events.CommentChange 类
通知监听器工作区评论的内容已更改。
Signature:
export declare class CommentChange extends CommentBase
扩展:CommentBase
构造函数
构造函数 | 修饰符 | 说明 |
---|---|---|
(constructor)(opt_comment, opt_oldContents, opt_newContents) | 构造 CommentChange 类的新实例 |
属性
媒体资源 | 修饰符 | 类型 | 说明 |
---|---|---|---|
newContents_? | string | (可选)评论的新内容。 | |
oldContents_? | string | (可选)评论的先前内容。 | |
type | string |
方法
方法 | 修饰符 | 说明 |
---|---|---|
isNull() | 此事件是否会记录任何状态变化? | |
run(正向) | 运行更改事件。 | |
toJson() | 将事件编码为 JSON。 |