父组件
<template><div><Button @click.native="Show()" /></div></template><script>import Button from '../components/Button.vue'export default {components: {Button,},methods: {Show() {//使用@click.native触发就可以解决问题this.ruleHide = true},}}</script>
时间:2020-12-26 18:21:38
父组件
<template><div><Button @click.native="Show()" /></div></template><script>import Button from '../components/Button.vue'export default {components: {Button,},methods: {Show() {//使用@click.native触发就可以解决问题this.ruleHide = true},}}</script>
Vue · @click点击事件:阻止事件冒泡 取消默认事件
2021-04-23
ngclick静态html失效 AngularJS ng-click事件点击无效
2020-01-04
广西桂林市中考满分作文-为了地球的明天1200字作文素材大全
2024-07-30