export,import的小知识

export default {

}
import 引入名 from 上述文件路径

export function 方法名() {

}
import {方法名} from 文件路径

export const 变量名 = 值

import {变量名} from 文件路径

后续有问题再补充,
每天一点小进步,加油!

猜你喜欢

转载自blog.csdn.net/qq_38992657/article/details/82985975