闭包问题for(var i=0;i<10;i++){ setTimeout(function(){ console.log(i)//10个10 },1000) }

NoSuchKey

猜你喜欢

转载自www.cnblogs.com/huchong-bk/p/11757786.html