stopImmediatePropagation() 方法在 事件 interface prevents other listeners of the same event from being called.

If several listeners are attached to the same element for the same event type, they are called in the order in which they were added. If stopImmediatePropagation() is invoked during one such call, no remaining listeners will be called.

句法

event.stopImmediatePropagation();
					

规范

规范 状态 注释
DOM
The definition of 'Event.stopImmediatePropagation()' in that specification.
实时标准

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
stopImmediatePropagation Chrome 6 Edge 12 Firefox 10 IE 9 Opera 15 Safari 5 WebView Android ≤37 Chrome Android 18 Firefox Android 10 Opera Android 14 Safari iOS 5 Samsung Internet Android 1.0

图例

完整支持

完整支持

元数据

  • 最后修改: