forked from owthub/vuejs2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo-8.html
43 lines (26 loc) · 905 Bytes
/
video-8.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
<html>
<head>
<script src="https://unpkg.com/[email protected]/dist/vue.js"></script>
</head>
<body>
<div id="my-app">
<h3>Counter: {{ counter }}</h3>
<button type="button" name="button" @click.once="incrementby1">Click + 1</button>
<br/><br/>
<a href="https://www.google.com" @click.prevent>Google</a>
<br/><br/>
<form class="" action="#" method="post" @submit.prevent>
<button type="submit" name="button">Submit</button>
</form>
<br/><br/>
<div id="parent-div" @click="submitClick">
<button id="child-div" @click.stop="submitClick">Click Me</button>
</div>
<br/><br/>
<div class="parent-class" @click.capture="parentClass">
<button type="button" name="button" @click="btnClick">Click Me Again</button>
</div>
</div>
<script src="video-8.js"></script>
</body>
</html>