内容是对象,分隔符是逗号
exportdefault{
name:"我是index.js",
fn2:()=>{}}import index from"./index.js";
2. commonJs(浏览器,服务器)
暴露exports 对象,默认是{}
exports.xxx = value --------------给exports对象添加属性和方法
Module.exports = value ------------{}
Let module =require(xxx)
第三方模块:xxx为模块的包名(name)
自定义模块:xxx为模块文件路径