研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >事件 >BlockBase
Events.BlockBase 类
与区块相关的任何事件的抽象类。
Signature:
export declare class BlockBase extends AbstractEvent
扩展:AbstractEvent
构造函数
构造函数 |
修饰符 |
说明 |
(构造函数)(opt_block) |
|
构造 BlockBase 类的新实例 |
属性
方法
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["The `BlockBase` class is an abstract class within Blockly's Events namespace, serving as the foundation for any event related to blocks."],["It extends the `AbstractEvent` class and includes properties like `blockId` for identifying the associated block and `isBlank`."],["The `BlockBase` class provides a constructor for instantiation and methods like `toJson` for encoding the event data as JSON."]]],[]]