node.on 触摸方法有疑问

node.on ( type, callback, [target ], useCapture )

useCapture:“When set to true, the capture argument prevents callback from being invoked when the event’s eventPhase attribute value is BUBBLING_PHASE. When false, callback will NOT be invoked when event’s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked when event’s eventPhase attribute value is AT_TARGET.”

最后一个参数useCapture 到底是什么意思?我试验了一下可以影响节点的触摸事件顺序,求教
还有就是event中这些阶段是什么意思
啥是 捕获阶段,目标阶段,冒泡阶段……求大神解释

。。不知道怎么说好
事件并不是瞬移到目标身上然后触发回调。
而是有一个传递的过程 从最外层的节点一路小跑触发到目标节点 这个过程 叫捕获阶段。到了目标节点触发完回调又一路小跑回到最外层的节点出去 这个是冒泡阶段。 use Capture就是设置要在哪个阶段触发回调。

1赞