| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 | 
							- <!DOCTYPE html>
 
- <html lang="en">
 
- <head>
 
-   <meta charset="UTF-8">
 
-   <meta http-equiv="X-UA-Compatible" content="IE=edge">
 
-   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
-   <title>Document</title>
 
-   <style>
 
-     .aa{
 
-       width: 200px;
 
-       height: 200px;
 
-       background: red;
 
-     }
 
-     .bb{
 
-       color: white;
 
-       font-size: 50px;
 
-     }
 
-   </style>
 
- </head>
 
- <body>
 
-   <div id="app">
 
-     <button @click="change">change</button>
 
-     <!-- v-bind  动态绑定属性 -->
 
-     <!-- <div v-bind:id="myName"></div> -->
 
-     <div :id="myName"></div>
 
-     <!-- <div :class="{aa:isA,bb:isB}">11111111111111</div> -->
 
-     <!-- <div :class="[flag?class1:'',class2]"></div> -->
 
-     <div style="width: 200px;height:300px"></div>
 
-     <div :style="{color: color1}"></div>
 
-     <div :style="[s1,s2]">xixixixixixiixiixxi</div>
 
-   </div>
 
-   <script src="./vue.js"></script>
 
-   <script>
 
-     var app = new Vue({
 
-       el: '#app',
 
-       data: {
 
-         myName: 'zs',
 
-         isA: true,
 
-         isB: true,
 
-         flag: false,
 
-         class1: 'aa',
 
-         class2: 'bb',
 
-         color1: 'green',
 
-         s1: {
 
-           width: '200px',
 
-           height: '300px'
 
-         },
 
-         s2:{
 
-           background: 'red'
 
-         }
 
-       },
 
-       methods: {
 
-         change(){
 
-           this.myName = 'lisi'
 
-         }
 
-       }
 
-     })
 
-   </script>
 
- </body>
 
- </html>
 
 
  |