แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > ComponentManager > removeComponent
เมธอด ComponentManager.removeComponent()
นำคอมโพเนนต์ออก
ลายเซ็น:
removeComponent(id: string): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
id |
สตริง |
รหัสของคอมโพเนนต์ที่จะนำออก |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-29 UTC
[null,null,["อัปเดตล่าสุด 2024-08-29 UTC"],[[["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"]]