VUE--事件和生命周期

1、事件冒泡 方法1、使用event.cancelBubble = true来组织冒泡 <div @click="show2()">     <input type="button" value="按钮" @click="show1($event)">    </div>    methods:{        show1:function(ev){            console.log(
相关文章
相关标签/搜索