使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
blockly >IIcon>处理
IIcon.dispose() 方法
丢弃图标的所有元素。
Signature:
dispose(): void;
返回:
void
特别是,如果此图标当前显示的是气泡,则应使用此图标将其隐藏。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["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"],null,[]]