<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
</head>
<body>
<div id="app">
<p>{{message}}</p>
<input type="text" v-model="message">
</div>
<script src="http://static.runoob.com/assets/vue/1.0.11/vue.min.js"></script>
<script>
var exampleData = {
message:‘Hello World!‘
}
new Vue({
el:"#app",
data:exampleData
});
</script>
</body>
</html>
时间: 2024-11-05 11:58:10