From cc2fecdc2e9b25cee6109e8feba41716be3db231 Mon Sep 17 00:00:00 2001 From: MDN Date: Wed, 12 May 2021 00:34:15 +0000 Subject: [CRON] sync translated content --- .../orphaned/web/api/uievent/cancelbubble/index.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 files/zh-cn/orphaned/web/api/uievent/cancelbubble/index.html (limited to 'files/zh-cn/orphaned') diff --git a/files/zh-cn/orphaned/web/api/uievent/cancelbubble/index.html b/files/zh-cn/orphaned/web/api/uievent/cancelbubble/index.html new file mode 100644 index 0000000000..f98af92c97 --- /dev/null +++ b/files/zh-cn/orphaned/web/api/uievent/cancelbubble/index.html @@ -0,0 +1,19 @@ +--- +title: event.cancelBubble +slug: orphaned/Web/API/UIEvent/cancelBubble +translation_of: Web/API/UIEvent/cancelBubble +original_slug: Web/API/UIEvent/cancelBubble +--- +

{{ ApiRef() }}

+
+ 警告: 请使用 event.stopPropagation() 方法来代替该不标准的属性.
+

概述

+

{{ Deprecated_header() }} 获取或设置一个布尔值,表明当前事件是否要取消冒泡.

+

语法

+
event.cancelBubble = bool;
+var bool = event.cancelBubble;
+
+

bool 的值为true或false.

+

备注

+

如果一个事件是可冒泡的,则它的cancelBubble属性的默认值为 false,代表允许该事件向上冒泡. 将cancelBubble属性设置为true以后,可以阻止该事件的进一步冒泡行为.

+

{{ languages( { "pl": "pl/DOM/event.cancelBubble" ,"en": "en/DOM/event.cancelBubble" } ) }}

-- cgit v1.2.3-54-g00ecf