MS总结

作者: A郑家庆 | 来源:发表于2019-02-28 22:43 被阅读0次

请写出下面代码的运行结果:

async function async1() {
   console.log('async1 start')
   await async2()
   console.log('async1 end')
}
async function async2() {
   console.log('async2')
}
console.log('script start')
setTimeout(function () {
   console.log('settimeout')
})
async1()
new Promise(function (resolve) {
   console.log('promise1')
   resolve()
}).then(function () {
   console.log('promise2')
})
console.log('script end')

题目的本质,就是考察setTimeout、promise、async await的实现及执行顺序,以及 JS 的事件循环的相关问题。
答案:

script start
async1 start
async2
promise1
script end
async1 end
promise2
settimeout

解释:https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/7

谈谈你对 TCP 三次握手和四次挥手的理解

image.png
本题链接:
https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/15

1-2年

https://mp.weixin.qq.com/s/Bzpir02eEgqfVmYbGRAfDA

VUE

https://mp.weixin.qq.com/s/wzA-pk4Q0RLHFJCxG48PSg

继承

https://mp.weixin.qq.com/s/IMTc8v9x30jygpkpnUutNg

P6

https://mp.weixin.qq.com/s/eyGsm6s0sCuTqB-HETMpIw

跨域

https://mp.weixin.qq.com/s/fAIl6IYugLb2p6E-4oBJTQ

大全

https://mp.weixin.qq.com/s/M5O0-H6PGLP1uSgrDabDtw

hr

https://mp.weixin.qq.com/s/chayrlIbkinroTp9mGcP1Q

优先

https://github.com/ljianshu/Blog
https://juejin.im/post/5af3cc4af265da0ba3521028
http://www.lucklnk.com/godaddy/details/aid/885287853
https://juejin.im/book/5a8f9ddcf265da4e9f6fb959
https://www.zhihu.com/question/41466747

项目

超级搜索和重大事件app项目的复习和准备,笔者建议是列思维导图(脑图),针对自己重点需要讲的项目,列出用到的技术点(知识点),介绍背景、项目上线后的收益以及后续优化点。这是第一层,第二层就是针对技术点(知识点)做各种发散的问题。

相关文章

网友评论

      本文标题:MS总结

      本文链接:https://www.haomeiwen.com/subject/jmcluqtx.html