Web/Vue

v-bine

JiniPia 2019. 2. 18. 14:51

 <html>

 <head>

  <meta charset="UTF-8">

  <script src = "js/vue.js"></script>

<script src = "js/jquery.js"></script>

  <title>Document</title>

 </head>

 <body>

  <div id='app'>

  <a v-bind:href="naver">네이버링크</a>

  <a v-bind:href="vue">뷰 링크</a>

  </div>

  <script>

  var model = {

  naver: "http://www.naver.com",

  vue: "https://kr.vuejs.org/"

  }

new Vue({

el:"#app",

data: model

})

  </script>

 </body>

 </html>