Bản khảo sát nghiên cứu: Cho chúng tôi biết trải nghiệm của bạn khi sử dụng Blockly
Bắt đầu khảo sát
chặn > ComponentManager > (Trình quản lý thành phần) > removeComponent
Phương thức ComponentManager.removeComponent()
Xoá một thành phần.
Chữ ký:
removeComponent(id: string): void;
Tham số
Thông số |
Loại |
Mô tả |
id |
string |
Mã của thành phần cần xoá. |
Trường hợp trả lại hàng:
void
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]