研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >IIcon>处理
IIcon.dispose() 方法
丢弃图标的所有元素。
Signature:
dispose(): void;
返回:
void
特别是,如果此图标当前显示的是气泡,则应使用此图标将其隐藏。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-14。
[null,null,["最后更新时间 (UTC):2024-10-14。"],[[["The `dispose()` method is used to remove any elements of the icon, including hiding any visible bubbles."],["This method does not return any value and is primarily used for cleanup purposes when the icon is no longer needed."]]],["The `dispose()` method, part of the `IIcon` interface, is used to eliminate elements associated with an icon. This method has no parameters and returns nothing (void). A key action it performs is hiding any currently visible bubble related to the icon. Calling `dispose()` ensures that resources linked to the icon are properly released.\n"]]