bindtouchend,里清除定时器有延迟
有朋友遇见这个情况吗?
timer全局设置,
start:function(){ timer = setInterval(()=>{ })},stop:function(){ clearInterval(timer)} |
stop绑定到bindtouchend上,真机上大概会有一秒多的延迟,但是console打印没有延迟,这是怎么回事啊
有朋友遇见这个情况吗?
timer全局设置,
start:function(){ timer = setInterval(()=>{ })},stop:function(){ clearInterval(timer)} |
stop绑定到bindtouchend上,真机上大概会有一秒多的延迟,但是console打印没有延迟,这是怎么回事啊