function timeDate(fun,a){
var time = setInterval(()=>{
window.clearInterval(time)
fun()
},a)
}
timeDate(()=>{
console.log(123)
},1000)
Javascript用setInterval实现setTimeou
最新推荐文章于 2024-09-07 13:38:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)