var timer;$("a").on({"mouseenter":function(){ clearTimeout(timer); timer=setTimeout(function(){ //这里触发hover事件 },500);},"mouseleave":function(){ clearTimeout(timer);}});