node 文件插入

var fs = require("fs");
fs.appendFile('message.txt', 'data to append', (err) => {
  if (err) throw err;
  console.log('文件插入成功');
});
console.log("文件插入");

猜你喜欢

转载自blog.csdn.net/guohao326/article/details/78263002