<div id="app-2">
  <span v-bind:title="message">
    鼠标移过时提示一段文字信息(加载页面的时间)
  </span>
</div>
// JavaScript
var app2 = new Vue({
  el: '#app-2',
  data: {
    message: 'You loaded this page on ' + new Date()
  }
})

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://npmcdn.com/vue/dist/vue.min.js