TypeError: timeout.close is not

2019-06-21  本文已影响0人  偶余杭

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


image.png

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

导致错误,删除之后

上一篇 下一篇

猜你喜欢

热点阅读