/*格式类似:*/clearTimeout(this.timer._id);
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/231711.html原文链接:https://javaforall.net
VUE中clearTimeout失效问题研究了很久以为是自己代码的问题结果是 VUE 封装了 setTimeout 在 VUE 中 setTimeout 返回一个对象 对象含有 id 属性 将 id 作为参数执行 clearTimeout 即可生效 格式类似 clearTimeout this timer id
/*格式类似:*/clearTimeout(this.timer._id);
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/231711.html原文链接:https://javaforall.net