How would I use clearInterval() here to stop timer when reaches 0?

后端 未结 0 1116
执笔经年
执笔经年 2020-12-13 17:33

Here is a simple timer, how would I implement clearInterval() in this bit of code when the timer reaches 0? It currently is infinite.

const start = 0.1; //6 s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题