摘要: 1.避免使用同步代码:// Good: write files asynchronouslyfs.writeFile('message.txt', 'Hello Node', function (err) { console.log("It's saved and the server remains responsive!");}); // BAD: write files synchronouslyfs.writeFileSync('message.txt', 'Hello Node');conso 阅读全文
posted @ 2013-12-05 11:18 yupeng 阅读(970) 评论(0) 推荐(1) 编辑