-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsession11.html
More file actions
57 lines (51 loc) · 1.37 KB
/
session11.html
File metadata and controls
57 lines (51 loc) · 1.37 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
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>Hello, world!</title>
<link rel="stylesheet" href="session.9.css">
</head>
<body>
<div id="app">
<p>
{{ message }}
</p>
<!-- <button v-on:click="counter++">
click1
</button> -->
<button v-on:click="clickHandler($event, 'Vue.js!')">
click2
</button>
</div>
<div id="app2">
<button v-on:click.once="clickHandler">
NOW
</button>
<p>
{{ message }}
</p>
</div>
<div id="app3">
<!-- <input type="text" v-on:keyup.27="clear" v-model="message"> -->
<!-- <input type="text" v-on:keyup.esc="clear" v-model="message"> -->
<!-- <input type="text" v-on:keyup.esc.space.up="clear" v-model="message"> -->
<input type="text" v-on:keyup.ctrl.67="clear" v-model="message">
<div v-on:click.shift="clickHandler">
Click me!
</div>
<p>
{{ message }}
</p>
</div>
<div id="app4">
<button v-on:click="clickHandler">
Click1
</button>
<button @click="clickHandler">
Click1
</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script type="text/javascript" src="session11.js"></script>
</body>
</html>