什么时候使用?
组件较大,或者不是必用的
通常组件在script标签对中导入,而异步组件在component中使用
例如:
components:{
ForData:() => import('../view/Fordata')
}
组件较大,或者不是必用的
通常组件在script标签对中导入,而异步组件在component中使用
例如:
components:{
ForData:() => import('../view/Fordata')
}