摘要: *1.CommonJS* ### 使用 exports ```javascript const name = '张三' function Fn() { return 1 } // 导出单个数据 exports.name = name exports.Fn = Fn // 导入数据 // 可使用解构 阅读全文
posted @ 2023-03-28 17:43 加利福尼亚的阳光 阅读(190) 评论(0) 推荐(0)