嗨,有人可以帮助我,例如,绑定(bind)如何准确地理解传递的事件,
$("#example_button").bind("click",function(){
alert("Event is clicked");
})
$("#example_button").bind("mouseover",function(){
alert("Event is mouseover");
})
如何准确地绑定(bind)数字(识别)事件...我的意思是有什么方法可以识别事件...
最佳答案
请参阅type
attribute在 jQuery 事件对象上:
$("a").click(function(event) {
alert(event.type); // "click"
});
关于javascript - jquery 中的绑定(bind)属性 - 识别事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11210541/