1.导入导出方法一:导出整个组件
//导出路由
export default router
//导入路由
import router from './router/router.js'
2.方法二: 导出一个组件中的多个模块
导出
export const appFunction1=()=>{
//方法体
}
export const appFunction2=()=>{
//方法体
}
导入
import {appFunction1,appFunction2} from './....'