摘要: 前提:引入fs模块 const fs = require('fs') 打开文件 //同步方式 console.log(123); let fd = fs.openSync('./abc.txt','a'); // 写入内容 fs.writeFileSync(fd,'666666') // 关闭文件 阅读全文
posted @ 2022-03-08 03:01 老oo 阅读(168) 评论(0) 推荐(0) 编辑