const fs = require('fs')
function fsRead(path){
return new Promise((resolve,reject)=>{
fs.readFile(path,'utf-8',(err,data)=>{
if(err){
reject(err)
}else{
resolve(data)
}
})
})
}
function fsRead(path,content){
return new Promise((resolve,reject)=>{
fs.readFile(path,content,'utf-8',(err)=>{
if(err){
reject(err)
}else{
resolve('修改成功')
}
})
})
}
05-31
365