Huooo

Results 4 comments of Huooo

造成浏览器奔溃,可在浏览器的 devtool 里一项项排查,查看临近奔溃时间段的 performance 里的运行状态,跟进片段的脚本调用。 ![image](https://user-images.githubusercontent.com/20020560/67445636-30e27c80-f640-11e9-9466-248947c7aa36.png) 包括 Memory 也是可以分析的(一种思路,个人暂时不精)

非常感谢这篇文章的详解以及讨论,学习到了Event Loop的很多细节。但是还有一处不明,还请帮忙解释一下。非常感谢你的时间。 ```javascript // example 1 new Promise(resolve => { resolve(1) Promise.resolve().then(() => console.log(42)) // then1 console.log(4) }).then(t => console.log(t)) // then2 console.log(3) // 输出结果依此为:4, 3, 42, 1 ``` ```javascript...

Event Loop的理解有点磕磕绊绊的,主要担心自己理解的不是正确的,但是关于Promise.resolve()源码的部分已经看明白了,非常感谢 @dwqs