1.
export default xxx
import 自定义名字 from '...'
2.
export const xxx = ...
export const yyy = ...
或者
const xxx = ...
const yyy = ...
export {xxx,yyy}
import * as 自定义名字 from '...'
自定义名字.xxx
或者
import {xxx,yyy} from '...'
转载请注明原文地址:https://blackberry.8miu.com/read-12383.html