📅  最后修改于: 2022-03-11 15:02:49.343000             🧑  作者: Mango
function sayHi() {
alert('Hello');
}
//Do a function at a set interval continuously
setTimeout(sayHi, 1000);
//Do a function once after a set interval
setTimeout(sayHi, 1000);