mouseover 移入某个元素后停留一段时间再执行函授,我用于解决轮播图下面计数用的元素快速移入后会出BUG的问题。

var stop;

$(this).bind("mouseover",function(){

  stop= setTimeout(function(){ },200);

}).bind("mouseout",function(){

  clearTimeout(stop);

})

posted @ 2016-05-10 21:12  稍微有点色  阅读(264)  评论(0编辑  收藏  举报