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
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
chặn > IDragger > onDragStart
Phương thức IDragger.onDragStart()
Xử lý mọi thao tác khởi động bằng thao tác kéo.
Chữ ký:
onDragStart(e: PointerEvent): void;
Tham số
Thông số |
Loại |
Mô tả |
e |
PointerEvent |
PointerEvent đã bắt đầu kéo. |
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-09-12 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-09-12 UTC."],[[["The `onDragStart` method is called when a drag operation begins, signaling the start of dragging a block."],["It receives a PointerEvent object (`e`) containing information about the event that initiated the drag."],["This method is part of the `IDragger` interface in Blockly and is responsible for handling any setup required at the start of a drag."],["The `onDragStart` method does not return any value (void)."]]],["The `onDragStart` method, part of the `IDragger` interface, manages the initiation of a drag operation. It accepts a single parameter, `e`, which is a `PointerEvent` object representing the event that triggered the drag. The method's purpose is to handle the beginning of the drag action, and it doesn't return any value (void).\n"]]