uniapp 阻止事件冒泡

1.uniap 阻止事件冒泡

父元素

@tap="toindex"

子元素

@tap.stop="towode"

这样就阻止事件冒泡了   各管各的

你可能感兴趣的:(微信小程序)