Skip to content

Instantly share code, notes, and snippets.

@lifesinger
Created September 23, 2013 01:49
Show Gist options
  • Save lifesinger/6665622 to your computer and use it in GitHub Desktop.
Save lifesinger/6665622 to your computer and use it in GitHub Desktop.
for (var i = 0; a < 3; i++) {
setTimeout(function() {
console.log(a);
}, 0);
};
// 控制台中的输出结果是什么?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment