yamotech
12/14/2019 - 8:26 AM

Vue.js 束縛(バインディング)

Vue.js 束縛(バインディング)

<div id="app">
  <span v-bind:title="message">
    Hover your mouse over me for a few seconds to see my dynamically bound title!
  </span>
</div>
var app = new Vue ({
  el: '#app',
  data: {
    message: 'You loaded this page on ' + new Date().toLocaleString()
  }
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.10/vue.min.js"></script>

Vue.js 束縛(バインディング)

A Pen by Tomoki Yamauchi on CodePen.

License.