第三个参数(false)在document.addEventListener(“deviceready”,OnDeviceReady,false)中指示什么? [英] What does the third parameter (false) indicate in document.addEventListener("deviceready",OnDeviceReady,false);

查看:1201
本文介绍了第三个参数(false)在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 registered listener before being dispatched to any EventTargets 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆