bindtouchend,里清除定时器有延迟
发布于 6 年前 作者 skang 18274 次浏览 来自 问答

有朋友遇见这个情况吗?

timer全局设置,

start:function(){
      timer = setInterval(()=>{
       
})
},
stop:function(){
    clearInterval(timer)
}

stop绑定到bindtouchend上,真机上大概会有一秒多的延迟,但是console打印没有延迟,这是怎么回事啊

1 回复

提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部