vue.js双向绑定实例
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="js/vue.min.js"></script>
</head>
<body>
<div id="app">
<p>{{ message }}</p>
<input type="text" v-model="message">
</div>
<script>
var app = new Vue({
el: '#app',
data: {
message: 'hello world!'
}
})
</script>
</body>
</html>