Closed wmzy closed 7 years ago
先看图 chrome:
nodejs 和 chrome 的事件驱动实现上:
node.js 事件由 libuv 驱动,chrome 由 webkit 实现。
nodejs 使用v8 作为JavaScript解析,同样的chrome 内核 webkit 也是用v8作为JavaScript解析 nodejs 使用libuv,chrome 难道不是么?
@rawbin- 浏览器不用 libuv
那在哪里可以看得到,浏览器用的什么库或者怎么实现的呢?
clone webkit 看看
nodejs 和浏览器(比如chrome)在事件循环的实现有没有什么不同?能详细讲一下么?