释放双眼,带上耳机,听听看~!
1、在 components 目录新建你的组件文件(indexPage.vue),script 一定要 export default{}
2、在需要用的页面(组件)中导入:import indexPage from’@/components/indexPage.vue’
3、注入到 vue 的子组件的 components 属性上面,components:{indexPage}
4、在 template 视图 view 中使用,例如有 indexPage 命名,使用的时候则 index-page
内容投诉









![[前端开发] MUI框架详解-全面讲解MUI框架使用](https://www.bloglab.cn/wp-content/uploads/thumb/2018/12/fill_w372_h231_g0_mark_80e5f34e03334950b3a4cb73bf4262dd.jpg)


![[MySQL] MySQL面试指南](https://www.bloglab.cn/wp-content/uploads/2018/12/1532f1414c3e23.jpg)

