摘要: nodejs读取文件两种方式: fs.readFileSync("index.js","utf-8");//很消耗内存 fs.createReadStream("index.js"); 阅读全文