jquery delegate 给a标签绑定hover事件

Note that as of jQuery 1.4.3, the type of event that is reported when using 'hover' with .delegate() or .live() is no longer mouseover/mouseout (as it ought to be). Now it will be mouseenter/mouseleave, which just seems silly since they're non-bubbling events.

$shortcut.delegate("a","hover",function(event){
	var type = event.type;
	if(type == "mouseenter"){ //移入

	}else{//mouseleave 移出

	}
});



 

你可能感兴趣的:(jquery delegate 给a标签绑定hover事件)