假如我需要把data序列化成json字串,然後寫入data.json檔案中,程式碼如下:. 1 let str = JSON.stringify(data) 2 3 fs.writeFile('data.json',str ...
確定! 回上一頁