setInterval(() => console.log("Hi"), 1000);
id
undefined
它返回一个唯一的id。此id可用于使用clearInterval()函数清除该定时器。
clearInterval()