同步组件引入方式
异步组件引入方式
手动给异步组件加延时
手动给异步组件加延时,并模拟测试各种流程
Inde.vue:
List.vue:
LoadingComponent.vue:
ErrorComponent.vue:
官方教程
https://cn.vuejs.org/guide/components/async.html
同步组件引入方式
异步组件引入方式
手动给异步组件加延时
手动给异步组件加延时,并模拟测试各种流程
Inde.vue:
List.vue:
LoadingComponent.vue:
ErrorComponent.vue:
官方教程
https://cn.vuejs.org/guide/components/async.html