标签:cno top tps color span for pre i++ nbsp
1
var value1 = 0, value2 = 0, value3 = 0; for ( var i = 1; i <= 3; i++) { var i2 = i; (function() { var i3 = i; setTimeout(function() { value1 += i; value2 += i2; value3 += i3; }, 1); })(); } setTimeout(function() { console.log(value1, value2, value3); }, 100);
链接:https://cnodejs.org/topic/55145859e26684ed7ff21bd3
标签:cno top tps color span for pre i++ nbsp
原文地址:http://www.cnblogs.com/aiyr/p/7821037.html