没有绑定,点击bbb没有出现"this is beauty",用的subline Text3
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>属性绑定和双向数据绑定</title>
<script src="./vue.js"></script>
</head>
<body>
<!-- title和数据项的title进行绑定v-bind可以简写为: -->
<div id="root">
<div :title="title">bbb</div>
<input />
<div>{{content}}</div>
</div>
<script>
new Vue({
el:"#root",
data:{
title: "this is beauty",
content:"this is content"
}
})
</script>
</body>
</html>