แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > บล็อก > getInputTargetBlock
ดึงข้อมูลบล็อกที่แนบอยู่กับอินพุตที่มีชื่อ
ลายเซ็น:
getInputTargetBlock(name: string): Block | null;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
ชื่อ |
สตริง |
ชื่อของอินพุต |
การคืนสินค้า:
บล็อก | ค่าว่าง
บล็อกค่าที่แนบหรือค่า Null หากอินพุตขาดการเชื่อมต่อหรือไม่มีอินพุต
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-21 UTC
[null,null,["อัปเดตล่าสุด 2024-08-21 UTC"],[[["The `getInputTargetBlock()` method retrieves the block connected to a specific input of the current block."],["It requires the `name` of the input as a parameter to identify the target connection."],["The method returns the connected block if found, otherwise it returns `null` if the input is empty or doesn't exist."]]],["The `getInputTargetBlock()` method retrieves a block connected to a specified input on a given block. It accepts the input's name as a string. The method returns the attached block if one exists; otherwise, it returns `null` if the input is disconnected or doesn't exist. The return type is either a `Block` or `null`.\n"]]