我們的志工尚未將本文翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
您也可以閱讀本文的 English (US) 版本。

The following APIs include an error event. Click the link for the API whose version of error you're looking for.

The error event is fired when an error has occurred; the exact circumstances vary since events by this name are used from a variety of APIs.

General info

Specification Document Object Model (DOM) Level 3 Events Specification
Interface UIEvent if generated by a user interface element, MediaRecorderErrorEvent if generated by the MediaStream Recording API, and Event otherwise.
Bubbles No
Cancelable No
Target Element
Default Action None

See also

GlobalEventHandlers.onerror
Events sent to Window.onerror and Element.onerror
HTMLMediaElement.onerror
Events sent to HTMLMediaElement, including <audio> and <video>
MediaRecorder.onerror
Events sent to MediaRecorder.onerror, of type MediaRecorderErrorEvent