error

当一个资源加载失败时会触发error事件。

常规信息

Specification
DOM L3
Interface
UIEvent if generated from a user interface, Event otherwise.
Bubbles
No
Cancelable
No
Target
Element
Default Action
None

属性

Property Type Description
target 只读 EventTarget The event target (the topmost target in the DOM tree).
type 只读 DOMString The type of event.
bubbles 只读 boolean Does the event normally bubble?
cancelable 只读 boolean Is it possible to cancel the event?
view 只读 WindowProxy document.defaultView (window of the document)
detail 只读 long (float) 0.

文档标签和贡献者