怎么解决这种问题呢?在animate()前面需要加上stop()
例如:
$(".nav_list").hover(function(){
$(".div1").stop().slowDown();
},function(){
$(".div1").stop().slowUp();
})
本文介绍了解决在使用animate方法时出现的问题的方法,在animate调用前加入stop()以避免动画叠加。
怎么解决这种问题呢?在animate()前面需要加上stop()
例如:
$(".nav_list").hover(function(){
$(".div1").stop().slowDown();
},function(){
$(".div1").stop().slowUp();
})
转载于:https://www.cnblogs.com/wuxibolgs329/p/6204572.html
1227
1016

被折叠的 条评论
为什么被折叠?