-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_test.html
81 lines (71 loc) · 2.03 KB
/
index_test.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>
Henry Tasks
</title>
<script src="js/vue.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="app-vue">
<div>
<h4>
v-if
</h4>
<div v-if="ifBoolean=false">
Show v-if info
</div>
<div v-else-if="ifBoolean=true">
No v-if info
</div>
</div>
<!-- {{text}} -->
<hr>
<div>
<h4>
v-show
</h4>
<div v-show="showBoolean">
Show v-show
</div>
</div>
<hr>
<div>
<h4>
v-for
</h4>
<ul>
<li v-for="name in names">
{{name}}
</li>
</ul>
</div>
<hr>
<div>
<h4>
v-model
</h4>
<textarea name="v-model-test" id="v-model-test" cols="38" rows="10" v-model="message">
</textarea>
<p>
{{message}}
</p>
</div>
<hr>
<div>
<h4>
v-on
</h4>
<button @click="counter+=1">Add</button>
<button v-on:click="counter-=1">Subscribe</button>
<p>
{{counter}}
</p>
</div>
</div>
<script src="app.js"></script>
</body>
</html>