-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
40 lines (40 loc) · 889 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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Mvvm</title>
<style>
#app {
margin: 50px;
}
input {
padding: 10px;
font-size: 30px;
outline: none;
border: 1px solid #ddd;
border-radius: 4px;
}
</style>
</head>
<body>
<div id="app">
<input v-model="name" type="text">
<h1>{{name}}</h1>
<h2>{{name}}</h2>
</div>
</body>
<script src="./js/Observer.js"></script>
<script src="./js/Watcher.js"></script>
<script src="./js/Compile.js"></script>
<script src="./js/Vue.js"></script>
<script>
const vm = new Vue({
el: '#app',
data: {
name: 'smile'
}
})
</script>
</html>