
nodejs
文章平均质量分 63
rabbif
学生
展开
-
学习nodejs——callback, async i/o
CALLBACK Callbacks are functions that are executed asynchronously, or at a later time. Instead of the code reading top to bottom procedurally, async programs may execute different functions at diff原创 2015-06-11 10:38:45 · 666 阅读 · 0 评论 -
NodeSchool——stream-adventure
Learn to compose streaming interfaces with .pipe(). MEET PIPE 参数输入,标准stdout输出 var fs = require('fs'); fs.createReadStream(process.argv[2]).pipe(process.stdout); INPUT OUTPUT stdin输入,stdin原创 2015-06-11 17:45:17 · 840 阅读 · 0 评论