Liang
Liang
解释非常详尽,感谢,我的理解是 Function instanceof Object 的表达式中,左值代表的是constructor function, 右值代表的是prototype, Javascript为function(Function)和prototype(Object)定义了不同的继承路径。
Two questions 1 From this article [Understand Node.JS eventloop](https://medium.com/the-node-js-collection/what-you-should-know-to-really-understand-the-node-js-event-loop-and-its-metrics-c4907b19da4c) >Misconception 1: The event loop runs in a separate thread than the user code Misconception There is a main thread where...
@creeperyang 非常感謝及時回复,那么关于Q2我还有一個问题,为什么系统操作的回調不会在poll阶段來执行呢?我的理解是Poll阶段只执行用户定义和Node库定义的回調,也就是比較高層的回調,而把底層的回調放在Pending Callbacks階段執行,那麽這麽做有什麽好處呢?是不是爲了優先回復Success的用戶request,而把failure的response放到後面來執行從而提高用戶的體驗?這是我的理解。
@Jocs 很厉害,有梦想,能努力什么时候都不晚,学习了
@shaodahong 你好,我在windows上跑了你的脚本完全没有问题,但是在Ubuntu 16.4上运行的时候,login 这一步完全得不到p3p和set-cookie的信息, 不知道你有没有什么解决方案,谢谢。我的Node和NPM版本如下 v9.2.1 5.5.1  