且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

连续每5秒调用一次javascript函数

更新时间:2022-12-28 17:35:23

你可以使用 setInterval() ,参数相同。

You can use setInterval(), the arguments are the same.

setInterval(function() {
  // method to be executed;
}, 5000);