第三个参数(false)在document.addEventListener(“deviceready”,OnDeviceReady,false)中指示什么? [英] What does the third parameter (false) indicate in document.addEventListener("deviceready",OnDeviceReady,false);
问题描述
第三个参数(false)在
What does the third parameter (false) indicate in
document.addEventListener("deviceready",OnDeviceReady,false);
任何人都可以显示示例脚本来显示差异
Can any one show an example script to show the difference
推荐答案
这是 useCapture :
如果
true
,useCapture
表示用户希望
启动捕获。在启动
捕获之后,指定的
类型的所有事件将被发送到
注册的监听器
之前,
被派发到DOM树中
以下的任何EventTarget
。
通过树向上冒泡的事件将
不触发指定为
的监听器使用捕获。请参阅 DOM 3级事件
详细解释。
If
true
,useCapture
indicates that the user wishes to initiate capture. After initiating capture, all events of the specified type will be dispatched to the registeredlistener
before being dispatched to anyEventTarget
s beneath it in the DOM tree. Events which are bubbling upward through the tree will not trigger a listener designated to use capture. See DOM Level 3 Events for a detailed explanation.
这篇关于第三个参数(false)在document.addEventListener(“deviceready”,OnDeviceReady,false)中指示什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!