How to set a timer in javascript

前端 未结 6 911
傲寒
傲寒 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条回答
提交回复
热议问题