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.stopImmediatePropagation()

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

除了停止事件繼續捕捉或冒泡傳遞外,也阻止事件被傳入同元素中註冊的其它相同事件類型之監聽器。

語法

event.stopImmediatePropagation(); 

備註

如果一個元素中註冊了多個相同事件類型的監聽器,監聽器將會按照註冊的先後順序被呼叫。在其中任何一個監聽器執行的期間,若是呼叫了事件物件的 stopImmediatePropagation() 方法,則接下來尚未執行的監聽器皆不會被呼叫。

規範

Specification Status Comment
DOM
The definition of 'Event.stopImmediatePropagation()' in that specification.
Living Standard  
DOM4
The definition of 'Event.stopImmediatePropagation()' in that specification.
Recommendation Initial definition

瀏覽器相容性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 6.0 10.0 (10.0) 9.0 15.0 5.0
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ?

文件標籤與貢獻者

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