-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (42 loc) · 983 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vvue</title>
</head>
<body>
<div id="app">
<h1>{{title}}</h1>
<p>
姓名:{{name}} 年龄:{{age}}
</p>
<p>
<input type="text" v-model="message">
<strong>{{message}}</strong>
</p>
<p><strong>{{message2}}</strong></p>
</div>
<script src="./proxy.js"></script>
<script src="./computed.js"></script>
<script src="./Watcher.js"></script>
<script src="./observe.js"></script>
<script src="./Compile.js"></script>
<script src="./Vvue.js"></script>
<script type="text/javascript">
new Vvue({
el: '#app',
data: {
title: 'VVUE',
name: 'lisi',
age: 20,
message: '双向绑定测试'
},
computed: {
message2(){
return "<<<<<<<<" + this.message + ">>>>>>>>>"
}
}
})
</script>
</body>
</html>