-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTTT.html
64 lines (61 loc) · 1.67 KB
/
TTT.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="vue.js"></script>
<style>
*{
margin: 0;
padding: 0;
}
.size{
font-size: 100px;
}
.color{
color: red;
}
.active{
background: skyblue;
}
.size,.color,.active{
transition: all .3s ease-in-out;
}
.btn{
position: absolute;
}
</style>
</head>
<body>
<div id="app">
<input class="btn" type="button" :value="heimi" @click="change">
<!--<p :class="[flag?'size':'',flag?'color':'',flag ? 'active':'']">{{name}}</p>-->
<!--<p :class="[flag?'size':'',flag?'color':'',{'active':flag}]">{{name}}</p>-->
<p :class="obj">{{name}}</p>
<!--<p v-text="name"></p>-->
<!--<p v-html="name"></p>-->
<!--<input v-model="name">-->
<!--<input :type="type" :placeholder="name">-->
</div>
<script>
new Vue({
el:"#app",
data:{
name:"海",
type:"text",
heimi:"VV",
flag: true,
obj:{
'size':true,
'color':true,
'active':false
}
},
methods:{
change:function () {
this.flag = this.flag !== true;
}
}
});
</script>
</body>
</html>