node.js異常信息提示:
fs.writeFile 寫入失敗:Error: ENOENT: no such file or directory, open 'd:\uni_app\nodejs\20211229\html01\
cap\02.html'

原因分析
1、fs.writeFile()方法只能用來創建文件,不能用來創建路徑。
2、重復調用fs.writeFile()方法寫入同一個文件,新寫入的內容會覆蓋原來的內容。