#动态组件#动态组件的使用方法:需要引入和注册组件实现vue动态组件的语法:components :is"componentsId"在需要切换组件的按钮上通过事件指定要切换的组件名字is里面的是一个切换组件的变量