摘要: CommonJS与ES6 Module的区别 CommonJS 1.模块依赖关系的建立发生在代码运行阶段 2.导出值的拷贝 cal.js module.exports={name:'cal'} index.js const name=require('./cal.js').name //requir 阅读全文
posted @ 2024-08-06 16:23 枫若 阅读(1) 评论(0) 推荐(0) 编辑