新建html文件内容为:
<!DOCTYPE html>
<html>
<head>
<title>指令</title>
<script src="js/vue.js"></script>
</head>
<body>
<div id="app">
<span v-bind:title="message" >鼠标滑过出现hello Vue!</span>
</div>
</body>
<script>
var app = new Vue({
el:'#app',
data:{
message:'hello Vue!'
}
})
</script>
</html>