Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >* 在捕获阶段中,事件到达节点的顺序与冒泡阶段恰好相反
- <!--点击 inner view 会先后调用handleTap2、handleTap4、handleTap3、handleTap1-->
- <view id="outer" bind:touchstart="handleTap1" capture-bind:touchstart="handleTap2">
- outer view
- <view id="inner" bind:touchstart="handleTap3" capture-bind:touchstart="handleTap4">
- inner view
- </view>
- </view>
Add Comment
Please, Sign In to add comment