如何在JavaScript中每x秒调用一个函数

setInterval(function (){ alert("Hello"); }, 3000);

原文地址:https://www.cnblogs.com/xhna/p/14215737.html