因此,使用@click.prevent.self将阻止所有单击,而@click.self.prevent只会阻止对元素本身的单击。我不明白‘’的意思,因此使用@click.prevent.self可以阻止所有的单击,而@click.self.prevent只会阻止对元素本身的单击。‘可以给出一个防止默认操作并显示差异的例子吗?"https://stackoverflow.com">@click.prevent.self="fn" or @click.self
我的vue应用程序使用: component -由component-child组成的父组件 在component-parent中,我有按钮,当有人点击一个按钮时,我想要发出一个事件,以便由vue处理并传递给另一个组件到目前为止,我所做的是: var vm = new Vue({ methods: { console.log('itemSe