function func1(){
setTimeout(function(){console.log("func1")},Math.random()*1000)
}
function func2(){
setTimeout(function(){console.log("func2")},Math.random()*1000)
}
function func3(){
setTimeout(function(){console.log("func3")},Math.random()*1000)
}
asynEach(func1,func2,func3);
//输出结果:
func1
func2
func3
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
欢迎选择我的课程,让我们一起见证您的进步~~