jQuery event.typeคุณสมบัติ
ตัวอย่าง
ส่งคืนประเภทเหตุการณ์ที่ทริกเกอร์:
$("p").on("click dblclick mouseover mouseout", function(event){
$("div").html("Event: " + event.type);
});
ความหมายและการใช้งาน
คุณสมบัติ event.type ส่งคืนประเภทเหตุการณ์ที่ถูกทริกเกอร์
ไวยากรณ์
event.type
Parameter | Description |
---|---|
event | Required. The event parameter comes from the event binding function |