setInterval = () =>{ console.log(1) //使用递归 setTimeout(setInterval,1000); }; setInterval() 转载于:https://www.cnblogs.com/Smiled/p/8053150.html