jQuery event.type 属性
实例
返回哪种事件类型被触发:
$("p").on("click dblclick mouseover mouseout",function(event){
$("div").html("Event: " + event.type);
});
知识兔 »
定义和用法
event.type 属性返回哪种事件类型被触发。
返回哪种事件类型被触发:
$("p").on("click dblclick mouseover mouseout",function(event){
$("div").html("Event: " + event.type);
});
event.type 属性返回哪种事件类型被触发。