动态组件:
组件的格式模板:
组件的引入:
动态引入组件:
引入之后需要申明的。
引入之后需要在component中进行申明的。
当引入事件的时候,就需要在method中进行申明。
keep-alive:避免组件来回的切换