https://developers.weixin.qq.com/miniprogram/dev/component/button.html
关于组件嵌套点击,父子点击事件,父层用bindtap,子层用catchtap='childClick' hover-stop-propagation='true'就能解决,
但是,如果我的子层是button,用的是bindgetuserinfo,那又怎样解决冲突事件呢?
https://developers.weixin.qq.com/miniprogram/dev/component/button.html
关于组件嵌套点击,父子点击事件,父层用bindtap,子层用catchtap='childClick' hover-stop-propagation='true'就能解决,
但是,如果我的子层是button,用的是bindgetuserinfo,那又怎样解决冲突事件呢?
3 个回答
貌似没有catchgetuserinfo这个玩意吧?
楼主button外包层view,在view里catchtap一下
catchgetuserinfo
已解决