和 readFile() 类似, writeFile() 也有一个同步方法,叫 writeFileSync() : 'use strict'; var fs = require('fs'); var data = 'Hello, Node.js'; fs.
確定! 回上一頁