javascript setInterval

前端 未结 8 1608
时光说笑
时光说笑 2020-11-30 12:30

a question. If i use setInterval in this manner:

setInterval(\'doSome();\',60000);

am i safe that the doSome() function is tri

8条回答
  •  日久生厌
    2020-11-30 12:50

    If the tab with the setInterval() function remains open, then yes the function will be executed every 60 seconds, even if you switch to or open other tabs.

提交回复
热议问题