vue阻止冒泡
来源:互联网 发布:js缺省参数 编辑:程序博客网 时间:2024/06/05 11:03
<template> <div class="main"> <img src="../../../static/img/wxmember.png" alt=""> <button @click="showBuy">立即购买</button> <div class="buy" v-if="isBuy" @click="closeBuy"> <img src="../../../static/img/buyyear.png" alt="" @click="sureBuy($event)"> </div> </div></template>
data () { return { isBuy:false, }},methods: { // 方法 showBuy(){ this.isBuy = true; }, closeBuy(){ this.isBuy = false; }, sureBuy(event){ event.cancelBubble = true; }},
阅读全文
0 0
- vue阻止事件冒泡
- vue阻止冒泡
- VUE冒泡及阻止冒泡
- Vue如何阻止事件冒泡
- Vue中阻止时间冒泡方法
- vue事件对象、冒泡、阻止默认行为
- vue绑定的点击事件阻止冒泡
- vue事件对象,冒泡,阻止默认行为
- vue--阻止冒泡、默认行为、键盘事件
- Vue 中阻止冒泡和默认事件
- vue阻止事件冒泡的两种方法
- VUE框架 导致绑定事件的阻止冒泡失效
- vue中阻止click事件冒泡,防止触发另一个事件
- vue.js阻止事件冒泡和默认事件
- 阻止冒泡
- 阻止冒泡
- 阻止冒泡
- vue项目,在进行点击的时候,如何屏蔽掉一些小的按钮,阻止冒泡
- pycharm连接mysql数据库
- nginx三 之动静分离
- VC1
- PHP学习笔记10(日期时间函数)
- IT人必须掌握的面试技巧
- vue阻止冒泡
- 使用Redis SETNX 命令实现分布式锁
- Java HashMap源码解析 不是COPY
- 安卓事件格式化不正确问题
- 图解正向代理、反向代理、透明代理
- 白帽子讲web安全笔记-3.2.6.4 window.name的妙用
- mvn install失败:Failed to read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2
- 比较a^b与b^a的大小
- 12.20 路径跳转问题