什么叫异步组件呢?
在项目执行的时候不加载,在需要的时候才加载。比如说弹框啦。
代码就不上啦 直接 写方法。
//这样引入就是异步组件
const List = () => import("./list")
const Content = () => import("./content")
compinents:{
List,
Content
}
什么叫异步组件呢?
在项目执行的时候不加载,在需要的时候才加载。比如说弹框啦。
代码就不上啦 直接 写方法。
//这样引入就是异步组件
const List = () => import("./list")
const Content = () => import("./content")
compinents:{
List,
Content
}