了解知识点
共同点
<!--bindtap--> <view class="parentBox" bindtap="onParentHandler">parentB <view class="childBox" bindtap="onChildHandler">childB</view> </view> <!--catchtap--> <view class="parentBox" catchtap="onParentHandler">parentB <view class="childBox" catchtap="onChildHandler">childB</view> </view>
区别
<view class="parentBox" bindtap="onParentHandler">parentB <view class="childBox" bindtap="onChildHandler">childB</view> </view>

//点击parentB onParentHandler:function(){ console.log("点击parentB"); }, //点击childB onChildHandler: function () { console.log("点击childB"); },


<view class="parentBox" catchtap="onParentHandler">parentB <view class="childBox" catchtap="onChildHandler">childB</view> </view>

//点击parentB onParentHandler:function(){ console.log("点击parentB"); }, //点击childB onChildHandler: function () { console.log("点击childB"); },


原文:https://www.cnblogs.com/zuiyue_jing/p/11929244.html