How to set a timer in javascript

前端 未结 6 909
傲寒
傲寒 2020-12-03 06:21

I want to run the following code:

ajaxUpdate(10);

With a delay of 1 second between each iteration. How can I do this?

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-03 06:50

    You can use too jQuery Timers: http://plugins.jquery.com/project/timers

提交回复
热议问题