How to send Ajax request on every 1s using JQuery?

后端 未结 5 1480
独厮守ぢ
独厮守ぢ 2021-01-03 06:43

How to send Ajax request on every 1s using JQuery ?

5条回答
  •  心在旅途
    2021-01-03 07:24

    if you use setInterval method, you may crush the browser, because setInterval is not waiting for ajax function to complete, if server is running slow or user's connection speed is low this may be cause running multiple ajax requests at the same tme

提交回复
热议问题