fs.readFileSync function提供一個同步讀取檔案的操作,回傳值為該檔案的內文 var fs = require('fs'); var fileName='/etc/hosts'; var text = fs.
確定! 回上一頁