1. 挂载点 <div id="app"></div> var vm = new Vue({ el: '#app',//将Vue实例与HTML元素关联起来,只有关联到Vue实例的html才享有vue的特性 components: { App }, template: '<App/>' }) 也可以写成 el: document.querySelector("#app") 2. 单文件组件 文件扩展名为 .vue 的 single-file components。