1,导出单一模块
export default{}
引用:import xxx from 'js文件路径'
2,导出多模块
export function xxx1(){}
export function xxx2(){}
引用:import * as xxx from 'js文件路径'
或者引用单一对象: import { xxx1 } from 'js文件路径'