微信小程序button设置了open-type="share"的按钮如何禁止向上冒泡

定义一个空的事件 catchtap="share"

js

 share:function(){
    console.log('禁止冒泡')
  },

 

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