设定计时器: let t = setInterval(() => { console.log('三石') },1000) # 1000--->1秒执行一次 关闭计时器: clearInterval(t) t = null