var fs = require('fs'); fs.writeFile(path + "test.txt", "hello world!", function(err) { if(err) { return console.log(err); } console.log("The file was saved!"); });
var fs = require('fs'); fs.writeFile(path + "test.txt", "hello world!", function(err) { if(err) { return console.log(err); } console.log("The file was saved!"); });
转载于:https://www.cnblogs.com/navysummer/p/10684063.html