Last active
July 3, 2018 09:53
-
-
Save langjt/6b0adb14df1a9447fdc9 to your computer and use it in GitHub Desktop.
事件循环
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function printing() { | |
console.log(1); | |
setTimeout(function() { console.log(2); }, 1000); | |
setTimeout(function() { console.log(3); }, 0); | |
console.log(4); | |
} | |
printing(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment