摘要: 文件系统(fs) 首先引入内置模块:var fs = require(“fs”); readFile 1.异步读取一个文件的全部内容:fs.readFile(“./filename”,[options],function(err,data){statements}) // fs.readFile(' 阅读全文
posted @ 2017-07-16 22:25 小豆梓 阅读(1014) 评论(0) 推荐(0)