小程序事件流

2020-02-22  本文已影响0人  日落_3d9f
小程序事件 事件示例 事件模型

Target表示触发事件的当前组件,CurrentTarget表示触发事件的根源组件。

可捕获事件:
touchstart、tap、touchmove、longpress、touchcancel、longtap、touched

可冒泡事件:
touchstart、touchmove、touchcancel、touchend、tap、longpress、longtap、transitioned、animationstart、animationiteration、animationend、touchforcechange

冒泡示例

事件调用处理过程:

点击Container-C区域 点击Container-B区域
上一篇 下一篇

猜你喜欢

热点阅读