แบบสำรวจการวิจัย: บอกให้เราทราบเกี่ยวกับประสบการณ์การใช้งาน Blockly
เริ่มแบบสำรวจ
blockly > แตะ > getTouchIdentifierFromEvent
ฟังก์ชัน Touch.getTouchIdentifierFromEvent()
รับตัวระบุตัวชี้จากเหตุการณ์ที่ระบุ
ลายเซ็น:
export declare function getTouchIdentifierFromEvent(e: PointerEvent): string;
พารามิเตอร์
พารามิเตอร์ |
ประเภท |
คำอธิบาย |
e |
PointerEvent |
เหตุการณ์เคอร์เซอร์ |
การคืนสินค้า:
สตริง
PointerId ของเหตุการณ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-12 UTC
[null,null,["อัปเดตล่าสุด 2024-09-12 UTC"],[[["Retrieves the unique identifier associated with a touch event, allowing tracking of individual touch interactions."],["Accepts a PointerEvent as input, which encapsulates information about touch or mouse events."],["Returns the pointerId as a string, representing the identifier for the specific touch point."]]],[]]