StackOverflow 文档 Node.js 教程 在 node.js 中导出和导入模块 使用 ES6 语法导出 使用 ES6 语法导出 Created: November-22, 2018 这相当于另一个示例, 但使用的是 ES6。 export function printHelloWorld() { console.log("Hello World!!!"); } 在 ES6 中使用导入在 node.js 中使用一个简单的模块