美文网首页
TypeError: timeout.close is not

TypeError: timeout.close is not

作者: 偶余杭 | 来源:发表于2019-06-21 14:45 被阅读0次

开发框架:VUE
IDE:VSCODE
前言:
使用setInterval 和clearInterval,调试过程中报错
错误:TypeError: timeout.close is not a function


image.png

原因:
使用clearInterval过程中,IDE自动加上以下语句:
import { clearInterval } from "timers";

导致错误,删除之后

相关文章

网友评论

      本文标题:TypeError: timeout.close is not

      本文链接:https://www.haomeiwen.com/subject/hbvyqctx.html