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 > Sự kiện > BlockChange > chạy
Phương thức Event.BlockChange.run()
Chạy một sự kiện thay đổi.
Chữ ký:
run(forward: boolean): void;
Tham số
Thông số |
Loại |
Mô tả |
chuyển tiếp |
boolean |
"True" nếu chạy tiến, false nếu chạy lùi (hoàn tác). |
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-10-14 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-10-14 UTC."],[[["The `run()` method executes a BlockChange event, modifying a block's state."],["It takes a boolean argument, `forward`, indicating whether to apply the change or undo it."],["When `forward` is true, the event's changes are applied; when false, the changes are reversed."],["This method is essential for managing block modifications and enabling undo/redo functionality within Blockly."]]],["The `Events.BlockChange.run()` method executes a block change event. It accepts a boolean parameter, `forward`, which determines the direction of the operation. When `forward` is true, the change is applied; when false, the change is undone. The method does not return any value.\n"]]