1. 语法 1.1 ES Module 导出:export / export default 导入: import * from 'module' 1.2 Commonjs 导出:module.exports 导入:const module = require('module')
2. 特性 2.1 ES Module 静态引入、编译时引入(支持Tree shaking 按需加载) 2.2 Commonjs 动态引入、执行时引入
欢迎分享,转载请注明来源:内存溢出
1. 语法 1.1 ES Module 导出:export / export default 导入: import * from 'module' 1.2 Commonjs 导出:module.exports 导入:const module = require('module')
2. 特性 2.1 ES Module 静态引入、编译时引入(支持Tree shaking 按需加载) 2.2 Commonjs 动态引入、执行时引入
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)