vuejs-challenges icon indicating copy to clipboard operation
vuejs-challenges copied to clipboard

243 - 阻止事件冒泡

Open PoliWen opened this issue 2 years ago • 0 comments

<script setup lang="ts">

const click1 = () => {
  console.log('click1')
}

const click2 = () => {
  console.log('click2')
}

</script>

<template>
  <div @click="click1()">
   <div @click.stop="click2()">
     click me
   </div>
  </div>
</template>

PoliWen avatar Sep 03 '22 15:09 PoliWen