<view class="section" bindtap=“click1”>  <view class="section__title">flex-direction: column</view>  <view class="flex-wrp" style="height: 300px;flex-direction:column;" >    <view class="flex-item bc_green" hover-stop-propagation  catchtap="click2>1</view>    <view class="flex-item bc_red">2</view>    <view class="flex-item bc_blue">3</view>  </view></view>

点击click2时组织触发其父元素;点击使用catchtap
给当前元素加上hover-stop-propagation,
小程序

click1(){console.log("111")},click2(){console.log("222")}

TAG标签: 微信小程序微信小程序点击事件

http://www.xiaochengxub.com/read-107069.html