目录

Event Binding and Bubbling

The format of event binding is similar to that of component attributes.

Example:

<view id="view1" bindtap="handleTap1">
  view1
  <view id="view2" catchtap="handleTap2">
    view2
    <view id="view3" bindtap="handleTap3">
      view3
    </view>
  </view>
</view>

Effect: