Seeker

Results 36 comments of Seeker

![image](https://user-images.githubusercontent.com/16753554/56256008-96860700-60f9-11e9-8c16-0f1d65b14f86.png)

应该是for循环,不是你说的那个Promise.all 的方式 ![image](https://user-images.githubusercontent.com/16753554/56256127-f9779e00-60f9-11e9-89f9-2c9619a6a18d.png)

[从Vue.js源码看nextTick机制](https://zhuanlan.zhihu.com/p/30451651) macrotasks: **setTimeout ,setInterval, setImmediate,requestAnimationFrame,I/O ,UI渲染** microtasks: **Promise, process.nextTick, Object.observe, MutationObserver** 当一个程序有:setTimeout, setInterval ,setImmediate, I/O, UI渲染,Promise ,process.nextTick, Object.observe, MutationObserver的时候: ![哈哈](https://pic2.zhimg.com/50/v2-a99898e192654136eabcc934aa29f725_hd.jpg) 1.先执行 macrotasks:I/O -》 UI渲染 2.再执行 microtasks :process.nextTick -》 Promise -》MutationObserver...

这个。。。。

[前端防御性编程](https://juejin.im/post/5de91d0f51882512400acafd#heading-9)