-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession5.html
More file actions
98 lines (86 loc) · 1.79 KB
/
session5.html
File metadata and controls
98 lines (86 loc) · 1.79 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Hello, world!</title>
<link rel="stylesheet" href="session.5.css">
</head>
<body>
<div id="app">
<p v-once>
{{ message }}
</p>
<button v-on:click="clickHandler">
Click!
</button>
</div>
<div id="app2">
<p v-pre>
{{ message }}
</p>
</div>
<div id="app3">
<p>
{{ message }}
</p>
<p v-html="message"></p>
</div>
<div id="app4">
<h2>
v-cloak
</h2>
<p v-cloak>
{{ message }}
</p>
</div>
<div id="app5">
{{ message }}
<p v-text="message"></p>
</div>
<div id="app6">
<p>
{{ message }}
</p>
<p>
{{ number + 1 }}
</p>
<p>
{{ message.split('').reverse().join('') }}
</p>
<p>
{{ ok ? 'YES' : 'NO' }}
</p>
</div>
<div id="app7">
<h2>
Mustache
</h2>
<p>
{{ price | numberFormat }}
</p>
<h2>
v-bind
</h2>
<input type="text" v-bind:value="price | numberFormat">
</div>
<div id="app8">
<p>
{{ jpyPrice | toUSD | numberFormat }}
</p>
</div>
<div id="app9">
<p>
{{ text | readMore(20, '...') }}
</p>
<p>
{{ text | readMore(5, '***') }}
</p>
</div>
<div id="app10">
<a v-bind:href="url" target="_blank">link1</a>
<a :href="url" target="_blank">link2</a>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script type="text/javascript" src="session5.js"></script>
</body>
</html>