Johnlee
Results
2
comments of
Johnlee
for (var i = 0; i < 10; i++) { setTimeout (function (i) { console.log (i); //10 10 10 .... }, 1000); } 为啥我这边执行是10个undefined ?
嗯,楼主写的有问题 