Does a JavaScript setTimeout function stop when page reloaded?

前端 未结 3 1084
南旧
南旧 2021-01-13 23:51

If I initiate a setTimeout function from the trigger, will the function stop when the page is reloaded?

I initiate a setTimeout function \"periodic_update()\" on th

3条回答
  •  一生所求
    2021-01-14 00:48

    When page is reloaded the "previous" timer is discarded and a new one will start.

提交回复
热议问题