แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > RenderedConnection > connect_
เมธอด RenderedConnection.connect_()
เชื่อมต่อ 2 อย่างเข้าด้วยกัน นี่คือการเชื่อมต่อบนบล็อกด้านบน แสดงผลบล็อกอีกครั้งตามต้องการ
ลายเซ็น:
protected connect_(childConnection: Connection): void;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
childConnection |
การเชื่อมต่อ |
การเชื่อมต่อในบล็อกที่ด้อยกว่า |
การคืนสินค้า:
เป็นโมฆะ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-12 UTC
[null,null,["อัปเดตล่าสุด 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)."]]],[]]