StackOverflow 文件 Node.js 教程 在 node.js 中匯出和匯入模組 使用 ES6 語法匯出 使用 ES6 語法匯出 Created: November-22, 2018 這相當於另一個示例, 但使用的是 ES6。 export function printHelloWorld() { console.log("Hello World!!!"); } 在 ES6 中使用匯入在 node.js 中使用一個簡單的模組