目前学习了三种方法
第一种 vue选项模板
template:`
<h2>我是选项模板</h2>
`
第二种标签模板
<template id="tp2">
<h2>我是标签模板</h2>
</template>
template:"#tp2"
第三种script模板
<script-type="x-template" id="tp3">
<h2>我是script模板</h2>
</script>
template:"#tp3"
这种写模板的方法,可以让模板文件从外部引入
习到vue-cli的时候还会学到一种xxx.vue的写法。