node api 之:fs
摘要:
fs.readFile() 函数会缓存整个文件。 为了最小化内存占用,尽可能优先使用 fs.createReadStream()。 阅读全文
posted @ 2018-11-05 16:08 cag2050 阅读(115) 评论(0) 推荐(0) 编辑
posted @ 2018-11-05 16:08 cag2050 阅读(115) 评论(0) 推荐(0) 编辑
posted @ 2018-11-05 15:47 cag2050 阅读(214) 评论(0) 推荐(0) 编辑
posted @ 2018-11-05 15:01 cag2050 阅读(141) 评论(0) 推荐(0) 编辑