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 > RenderedConnection > connect_
Phương thức RenderedConnection.connect_()
Kết nối hai kết nối với nhau. Đây là kết nối trên khối cấp cao. Kết xuất lại các khối nếu cần.
Chữ ký:
protected connect_(childConnection: Connection): void;
Tham số
Thông số |
Loại |
Mô tả |
childConnection |
Kết nối |
Kết nối trên khối kém hơn. |
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.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-12 UTC."],[[["The `connect_()` method joins two Blockly connections, specifically the one on the superior block to the one provided as input."],["This method is designated as `protected` within the `RenderedConnection` class."],["When called, `connect_()` triggers a rerendering of the involved blocks to visually reflect the connection."],["The method accepts a single argument: `childConnection`, which is an instance of the `Connection` class, representing the connection point on the subordinate block."],["`connect_()` does not return any explicit value (void)."]]],[]]