研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >ComponentManager >removeComponent
ComponentManager.removeComponent() 方法
删除组件。
Signature:
removeComponent(id: string): void;
参数
参数 |
类型 |
说明 |
id |
字符串 |
要移除的组件的 ID。 |
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-29。
[null,null,["最后更新时间 (UTC):2024-08-29。"],[[["The `ComponentManager.removeComponent()` method is used to remove a component from the workspace."],["It accepts a single parameter, `id`, which is the string ID of the component to be removed."],["The method does not return any value (void)."]]],["The `removeComponent` method, part of `ComponentManager`, removes a specified component. It accepts a single parameter: `id`, a string representing the ID of the component targeted for removal. This method does not return any value (`void`). The primary action is the removal of a component identified by its unique ID.\n"]]