Skip to content
New issue

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

测试题:Promise相关 #150

Open
smileyby opened this issue Sep 7, 2021 · 3 comments
Open

测试题:Promise相关 #150

smileyby opened this issue Sep 7, 2021 · 3 comments
Labels

Comments

@smileyby
Copy link
Owner

smileyby commented Sep 7, 2021

Promise测试题
// 最后的输出结果是什么?

参考链接:Promise.then

@smileyby smileyby added the 测试题 💫 测试题 label Sep 7, 2021
@smileyby
Copy link
Owner Author

smileyby commented Sep 7, 2021

https://mp.weixin.qq.com/s/XddSRxFcC2FrrVQtzvBQ1w
todo:转为代码图片

@smileyby
Copy link
Owner Author

carbon (2)

代码顺序执行,先宏任务再微任务。队列中:先微任务,再宏任务 ?

@smileyby
Copy link
Owner Author

队列中的 微任务和宏任务那个先执行,如果是同事进入队列?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant