
- 原理,使用定时器,定时清除类名,定时器执行时间和动画执行时间要相等,才能做到可以无间隔点击
- 知识点
1s = 1000ms
0.2s = 200ms - 定时器写法
时间写后面
setTimeout(function(){
$('.btn').children('img').removeClass('hyh_activ');
},300)
setTimeout(function(){
$('.btn').children('img').removeClass('hyh_activ');
},300)
本文标题:点击图标换一换
本文链接:https://www.haomeiwen.com/subject/onirmrtx.html
网友评论