- new 一个vue对象时可以设置他的属性,其中重要的三个是data,method和watch
 - data代表vue的数据
 - method代表vue对象的方法
 - watch设置了对象监听的方法
 
vue里面的设置通过HTML指令进行关联
其中:* v-text 渲染数据
* v-if 控制显示
* v-for 循环渲染
* v-on 绑定事件
 index.html 项目入口1
2
3
4
5
6
7
8
9
10
11
<html>
  <head>
    <meta charset="utf-8">
    <title>my-first-project</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
</html>
v-text=’title’ 相当于 Vue小结