Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Event.bubbles

翻譯不完整。請協助 翻譯此英文文件

概述

表示事件是否會向上冒泡傳遞。

語法

var bool = event.bubbles;

回傳一個布林值,若事件會向上冒泡傳遞則回傳 true

備註

Only certain events can bubble. Events that do bubble have this property set to true. You can use this property to check if an event is allowed to bubble or not.

範例

 function goInput(e) {
  // checks bubbles and
  if (!e.bubbles) {
     // passes event along if it's not
     passItOn(e); 
  }
  // already bubbling
  doOutput(e)
}

規範

Specification Status Comment
DOM
The definition of 'Event.bubbles' in that specification.
Living Standard  
DOM4
The definition of 'Event.bubbles' in that specification.
Recommendation  
Document Object Model (DOM) Level 2 Events Specification
The definition of 'Event.bubbles' in that specification.
Recommendation Initial definition.

文件標籤與貢獻者

 此頁面的貢獻者: jackblackevo
 最近更新: jackblackevo,