web前端三大框架(主流Vue.js)

web前端三大框架Angular、React、Vue

通过这三大框架的双向绑定能够简单的了解三大框架在编码上的一些区别以及其的简易程度,vue.js 给我们带来的体验还是不错的

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>

</head>

<body>
  <div id="app">
    <input type="text" v-model="message">
    <h1>{{ message }}</h1>
  </div>

  <script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
  <script>
    new Vue({
      el: '#app',
      data() {
        return {
          message: 'Hello world !!!'
        }
      }
    })
  </script>
</body>

</html>

  

原文地址:https://www.cnblogs.com/huoxiansudi/p/11792606.html