Nodejs中複製文件的四種方法

1 copyFile fs.copyFile(src, dest[, flags], callback)web Node v8.5.0之後可用,用法以下:app fs.copyFile('./src/index.js','./dist/index.js',function(err){ if(err) console.log('something wrong was happened') els
相關文章
相關標籤/搜索