forked from shibing624/python-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01hello.html
More file actions
50 lines (46 loc) · 1.01 KB
/
01hello.html
File metadata and controls
50 lines (46 loc) · 1.01 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="./vue.min.js"></script>
<style>
.class1 {
background: #444;
color: #eee;
}
.hide1 {
type: hidden;
}
</style>
</head>
<body>
<div id="app">
<p>{{ message }}</p>
<p>{{ kk }}</p>
<div v-html="mes"></div>
<br>
<label>变色</label><input type="checkbox" v-model="class1">
<div v-bind:class="{'class1':class1}">
v-bind commond
</div>
<p v-if="seen">看得到我么</p>
<label>hide</label><input type="checkbox" v-model="seen">
<!--<p v-if:class="{'hide1':seen}">看得到我么</p>-->
</div>
<script>
new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!',
kk: 'ki kk',
mes: 'hello',
v: 123,
num: 1,
class1: false,
seen: true,
}
})
</script>
</body>
</html>