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

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

posted @ 2020-12-31 12:04  许许许X  阅读(123)  评论(0)    收藏  举报