Get to know MDN better
此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
* Some parts of this feature may have varying levels of support.
URIError 物件表示一個在全域 URI 處理函式使用方式錯誤時的錯誤。
URIError 是一個可序列化物件,所以它可以使用 structuredClone() 複製,或在 Worker 之間使用 postMessage() 複製。
URIError 是 Error 的子類別。
建立一個新的 URIError 物件。
也繼承其父實例 Error 的實例屬性。
這些屬性定義在 URIError.prototype 上,並由所有 URIError 實例共享。
URIError.prototype.constructor建立實例物件的建構函式。對於 URIError 實例,初始值為 URIError 建構子。
URIError.prototype.name表示錯誤類型的名稱。對於 URIError.prototype.name,初始值為 "URIError"。
繼承其父實例 Error 的實例方法。
| ECMAScript® 2027 Language Specification # sec-native-error-types-used-in-this-standard-urierror |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年8月9日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.