会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lcjspace
博客园
首页
新随笔
联系
订阅
管理
2023年4月4日
node_fs模块_读写文件
摘要: 读取方法: const fs = require("fs"); // 异步读取 fs.readFile('./text.txt', (err, data) => { console.log(data.toString()) }) // 同步读取 const data = fs.readFileSyn
阅读全文
posted @ 2023-04-04 10:14 不知码
阅读(27)
评论(0)
推荐(0)
公告