v-bind:title="message"

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue实例化</title>
</head>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<body>
    
<div id="app-2">
  <span v-bind:title="message">
    鼠标悬停几秒钟查看此处动态绑定的提示信息!
  </span>
</div>
<script type="text/javascript">
var app2 = new Vue({
  el: '#app-2',
  data: {
    message: '页面加载于 ' + new Date().toLocaleString()
  }
})

</script>
    
</body>
</html>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-20
  • 2021-06-07
  • 2022-12-23
  • 2021-12-27
  • 2021-08-01
  • 2021-09-30
猜你喜欢
  • 2021-05-18
  • 2022-12-23
  • 2021-09-05
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案