setInterval与setTimeout的区别 废na个鱼 2023-11-28 42 阅读1分钟 都是定时器函数,但是 setTimeout:只执行一次函数 setInterval:会自动重复的循环执行函数