จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
blockly > blockRendering > การเชื่อมต่อ > (เครื่องมือสร้าง)
blockRendering.Connection.(constructor)
สร้างอินสแตนซ์ใหม่ของคลาส Connection
ลายเซ็น:
constructor(constants: ConstantProvider, connectionModel: RenderedConnection);
พารามิเตอร์
| พารามิเตอร์ |
ประเภท |
คำอธิบาย |
| ค่าคงที่ |
ConstantProvider |
ผู้ให้บริการค่าคงที่ในการแสดงผล |
| connectionModel |
RenderedConnection |
ออบเจ็กต์การเชื่อมต่อบนบล็อกที่แสดง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],["The `Connection` class constructor takes two parameters: `constants` and `connectionModel`. `constants` is an instance of `ConstantProvider` and provides rendering constants. `connectionModel` represents the connection object on the block, and is of type `RenderedConnection`. This constructor creates a new instance of the `Connection` class. The `Connection` class is part of the `blockRendering` namespace.\n"]]