摘要: # Node.js in practice(intermediate)## 1. Node Foundations###1.1 Features of node.js* 非阻塞I/O none-blocking IO* 利于爬虫* 与JSON 配合的很好nodejs 主要特性* node.js 的标... 阅读全文
posted @ 2015-10-29 10:49 Trouble is friend 阅读(323) 评论(0) 推荐(0) 编辑
摘要: events 事件有两种:System Events C++ Core libuv Custom Events JavaScript Core Event Emitter一.The node event emitter1.创建 Emitter module 新建 emitte.js文件代码如下function Emitter(){this.events = {};}// 为事件注册监听器E... 阅读全文
posted @ 2015-10-29 10:47 Trouble is friend 阅读(311) 评论(0) 推荐(0) 编辑