-
点击子元素时触发父类下的点击方法;
此处点击了按钮之后正常应该弹出电话框,但是偏偏触发了整个cell条的点击方法,跳转到另一个页面了,WTF!!
<view class="contact">
<button hover-stop-propagation catchtap="messageClick"></button>
<button hover-stop-propagation catchtap="callingClick" data-click-phone="{{item.phone}}"></button>
</view>
首先:点击方法不要用bindtap, 用catchtap,然后写入hover-stop-propagatio
结束!