摘要: Node.js 里可分为 CommonJS 模块和 ECMAScript 模块(ESM)两种不同的模块系统。 CommonJS 模块是 Node.js 最初支持的模块系统,它使用 require() 函数来导入模块,使用 module.exports 或 exports 对象来导出模块。这种模块系统 阅读全文
posted @ 2024-03-02 17:41 编程小妹 阅读(167) 评论(0) 推荐(0)