var temp; var time=100; var m = 1; setfun(); function setfun(){ temp = setInterval(function(){ console.log(‘执行1次‘+time); clearInterval(temp); setfun(); },time); m++; time = m*100; }
原文地址:https://www.cnblogs.com/NB-JDzhou/p/8116589.html
时间: 2024-10-10 10:07:55