1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
   | <!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>03.数据绑定</title>         <script src="../js/vue.js"></script>     </head>     <body>         
 
 
 
 
 
          <div id="root">             <h2>单向数据绑定 : v-bind 的简写</h2>             <input type="text" :value="title" />             <h2>双向数据绑定 v-model</h2>             <input type="text" v-model:value="title" />             
 
              <h2 v-modle:value="title"></h2>         </div>     </body>     <script>         Vue.config.productionTip = false;         const vm = new Vue({             el: '#root',             data: {                 title: 'hello vue',                 url: 'http://www.odinsam.com'             }         });     </script> </html>
   |