Auto refresh page every 30 seconds

前端 未结 4 1999
甜味超标
甜味超标 2021-01-30 16:30

I have a JSP page which has to display the status of various jobs that are running. Some of these jobs take time, so it takes a while for their status to change from processing

4条回答
  •  囚心锁ツ
    2021-01-30 16:57

    Use setInterval instead of setTimeout. Though in this case either will be fine but setTimeout inherently triggers only once setInterval continues indefinitely.

    
    

提交回复
热议问题