[英]using jQuery bind event (mousedown+mouseover)
How can I use jQuery to bind when the mouse is over an element it perform an action. 当鼠标悬停在元素上方时,如何使用jQuery进行操作。 ? ? my code 我的密码
$("div").bind('mouseover',function(){
my_function();
});
$("#elementID").on('mouseover', function(event) {
//code goes here
});
You should use .on() instead of .bind(); 您应该使用.on()而不是.bind();
$("seletor").bind('mouseover', function(event) {
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.