nextTick和promise回调执行顺序?
Promise.resolve().then(() => { process.nextTick(() => { console.log(2) })
Promise.resolve().then(() => { console.log(1) }) }) // 1 2
2 回复
先解释一下什么是nextTick,它的用途是什么
建议可以看下深入浅出NodeJS