var fs = require("fs") fs.readFile("file.txt","UTF-8",function(err,data){ if(err){ console.log("err") }else{ console.log(data) } }) console.log("end");
var fs = require("fs") fs.readFile("file.txt","UTF-8",function(err,data){ if(err){ console.log("err") }else{ console.log(data) } }) console.log("end");
转载于:https://www.cnblogs.com/sunbey/p/5707756.html