Tag: Node.js
All the articles with the tag "Node.js".
-
《Node.js事件循环》笔记
在Node.js中,*事件循环*是实现*异步I/O*的关键,是必须要了解的知识。
-
Node.js中的Timers
Node.js中有三个和定时相关的API: `setTimeout(), setInterval(), setImmediate()`,他们都位于timers模块中。而且`timers`模块是全局模块,不需要用`require`导入就可以使用。
-
Node.js中module.exports和exports
在`Node.js`中,导出一个对象可以用`exports`,也可以用`module.exports`,但是这两者是有些区别的。
-
Node.js 代码段
一些常用或有用的代码段,积少成多。