下面是一個示例: import fs from 'fs' var output = fs.readFileSync('someData.txt') ... 當用ts-node執行時,用typescript導入nodejs`fs`? 19. 使用fs時的文件路徑 ...
確定! 回上一頁