We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setTimeout(() => { console.log(1) }, 0) let timeout = new Promise((resolve, reject) => { console.log(2) })
这段代码,原生输出 2 1
The text was updated successfully, but these errors were encountered:
setTimeout(function() { console.log('three') }, 0) Promise.resolve().then(function() { console.log('two') }) console.log('one')
同样的原生输出one two three;这应该是宏任务与微任务的执行顺序问题,
Sorry, something went wrong.
No branches or pull requests
这段代码,原生输出 2 1
The text was updated successfully, but these errors were encountered: