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