Vue.js模板语法

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <meta name="viewport" content="width=device-width, initial-scale=1.0">
 6     <meta http-equiv="X-UA-Compatible" content="ie=edge">
 7     <title>Document</title>
 8     <!-- 调用Vue.js库 -->
 9     <script src="vue.js"></script>
10     <script>
11         window.onload = function(){
12             // 1.创建Vue对象
13             var vm = new Vue({
14                 //2. 获取标签
15                 el:' ',   // id标签是"#app" / class类标签是".list_con" /
16                 // 3.定义变量(属性)
17                 data:{
18 
19                 },
20                 // 4.定义方法(函数)
21                 methods:{
22 
23                 },
24 
25             })
26 
27         }
28     
29     </script>
30 </head>
31 <body>
32     
33 </body>
34 </html>
原文地址:https://www.cnblogs.com/Lee1010/p/9877712.html