摘要:
Nodejs的事件模块var events = require('events');var eventEmitter = new events.EventEmitter();//创建EventEmitter对象var connectHandler = function connected(){ c... 阅读全文
摘要:
helloworld.txt的内容:我是nodejs阻塞式调用var fs = require('fs');var data = fs.readFileSync('helloworld.txt');console.log(data.toString());console.log("程序执行完毕!")... 阅读全文