writeFile(),writeFileSync(). writeFile 方法用于异步写入文件。 fs.writeFile('message.txt', 'Hello Node.js', (err) => { if (err) throw err; ...
確定! 回上一頁