第一步,需要被封装的代码
#a.vue < template> ..... < /template> #####第二步,需要再引入的地方先导入在使用,名称要一直,不能错 #b.vue < template > <ab1out /> < /template > import ab1out from '../views/AboutView.vue'