取消定时器的方法

clearInterval() 方法可取消由 setInterval() 设置的 timeout。

clearInterval() 方法的参数必须是由 setInterval() 返回的 ID 值。

posted @ 2021-03-05 15:28  web格调  阅读(763)  评论(0)    收藏  举报