
在引入组件时,import {} from"xxxx"和不带{}的区别?
如果自己定义的就不要带{}
<template v-for="item in $store.state.Banners" :key="item">
<h3>{{ item.title }}</h3>
</template>
import homeModule from "./modules/home";

在引入组件时,import {} from"xxxx"和不带{}的区别?
如果自己定义的就不要带{}
<template v-for="item in $store.state.Banners" :key="item">
<h3>{{ item.title }}</h3>
</template>
import homeModule from "./modules/home";
657

被折叠的 条评论
为什么被折叠?