跳到主要内容
CNode

在程序中不clear掉相应的setInterval()会有什么后果吗?

问答
AanotherWill发布于 10 年前最后回复 10 年前
546210

setInterval中是一个异步方法调用。

查看回复

回复 (5)

A
anotherWill#510 年前
F
flamingtop#410 年前

取决于setInterval内具体做什么。 用chrome的任务管理器看页面是否占用大量CPU

Z
zhangjh#310 年前

不clear就会一直触发定时器操作啊

A
anotherWill#210 年前

asdf

A
anotherWill#110 年前

dfdsf

参与回复

登录后即可参与回复。登录