ErrorEvent
ErrorEvent
介面是用來提供程式碼或是檔案的錯誤訊息的事件。
Properties
此介面繼承了其父 Event
的 properties 。
ErrorEvent.message
Read only-
一
DOMString
提供具可讀性的關於問題的錯誤訊息。 ErrorEvent.filename
Read only-
一
DOMString
,為發生錯誤的程式碼檔案的檔名。 ErrorEvent.lineno
Read only-
一
整數
,為發生問題的程式的行數。 ErrorEvent.colno
Read only-
一
整數
,為發生問題的程式的欄數。 ErrorEvent.error
Read only 實驗性質-
一個參與該事件的 JavaScript
Object
。
Constructor
ErrorEvent()
-
建立一
ErrorEvent
事件,其包含提供的參數。
Methods
此介面繼承了其父 Event
的 methods。
Specifications
Specification |
---|
HTML # the-errorevent-interface |
瀏覽器支援度比較
Report problems with this compatibility data on GitHubLegend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
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.
延伸閱讀
- Using web workers, most likely objects to raise such an event