<template>
<h3>事件修饰符</h3>
<a @click="clickHandle" href="www.baidu.com">百度</a>
<div @click="clickDiv">
<p @click="clickP">测试冒泡</p>
</div>
</template>
<script>
export default {
name: "EventDemo",
methods:{
clickHandle(e){
console.log("点击了")
},
clickDiv(){
console.log("DIV")
},
clickP(){
console.log("P")
}
}
}
</script>
<style scoped>
</style>
标签:--------,vue,console,log,修饰符,test
From: https://www.cnblogs.com/lin513/p/17816292.html