阻止冒泡:
<view @click="Nomao">
不知荼-泡泡
<view @click.stop="mao">我只想打印“不冒泡~~~~~~”</view>
</view>
export default {
methods: {
Nomao(){
console.log(“不知荼-泡泡”)
},
mao(){
console.log(“不冒泡~~~~~~”)
},
}
}