<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>屬性綁定和雙向數據綁定</title>
<script src="vue.js"></script>
</head>
<body>
<div id="root">
<div v-bind:title="title">hello world</div>
<div :title="title">hello world</div>
<input v-model="content" />
<div>{{content}}</div>
</div>
<script>
new Vue({
el:"#root",
data:{
title:"this is hello world!",
content:"this is content"
}
})
</script>
</body>
</html>