

最近做的项目基于es6的,虽然关于import的各种用法已经烂熟于心:

import xx from '@/componts/user' export deafult xx={}
import {xx} from '@/componts/user' export xx={}
@import "~@/assets/styles/mixin.scss";
这个半路杀出的个:
import { get as getDictDetail } from '@/api/system/dictDetail'
export { default as AppMain } from './AppMain'

具体请移步MDN import描述

网友评论