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 > ContextMenuRegistry > (hàm khởi tạo)
Đặt lại thực thể singleton hiện có của ContextMenuRegistry.
Chữ ký:
constructor();
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-09-12 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-12 UTC."],[[["The `ContextMenuRegistry` constructor resets the existing singleton instance of the registry."],["It is used to manage and control the context menus displayed within the Blockly workspace."],["Calling this constructor will clear any previously registered context menu items and options."]]],["The `ContextMenuRegistry` constructor resets the existing singleton instance of the `ContextMenuRegistry`. This is the core action: resetting the singleton instance. The information provided specifies that `ContextMenuRegistry` is a class and that the `constructor()` method is responsible for this resetting action. The method takes no arguments, as indicated by the empty parentheses in the signature `constructor();`.\n"]]