创建一个.vue文件 ,创建一个或多个<template> 模板
使用export default {
name:''
}暴露接口 个人理解类似于java开放构造方法为public
在js或者其他vue文件中 import 名称(上面声明的Name) from './vue' (地址)
使用components 对导入的vue 进行模板注册 类似于java中new对象的操作
注册后上方template可直接调用
最终在js中 new Vue 对象挂载 index.html 中的id ,将导入的对象通过template传递给index.html达到展示(标签名必须为vue文件中定义的name名称)