练习
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>属性绑定和双向数据绑定</title>
<script src="./vue.js"></script>
</head>
<body>
<div id="root">
<!-- v-bind: 缩写: -->
<div :title="title"> hello word</div>
<input v-model="content" />
<div>{{content}}</div>
</div>
<script>
new Vue({
el: "#root",
data: {
title:"this is hello word",
content:"this is content"
}
})
</script>
</body>
</html>