Created
August 4, 2020 10:45
-
-
Save PKTseng/c2579af544876c82c1efee64111d10f3 to your computer and use it in GitHub Desktop.
修飾符
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="app"> | |
<a | |
href="https://www.google.com/" | |
target="_blank" | |
@click="linkClick" | |
> | |
</a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Vue({ | |
el:"#app", | |
data:{ | |
}, | |
methods:{ | |
linkClick(){ | |
alert("不開新頁面") | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment