URL: revokeObjectURL() 静的メソッド
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
revokeObjectURL()
は URL
インターフェイスの静的メソッドで、以前に URL.createObjectURL()
を呼び出して生成された既存のオブジェクト URL を解放します。
オブジェクト URL を使い終わったら、このメソッドを呼び出して、ファイルへの参照をこれ以上保持しないようにブラウザーに知らせてください。
構文
js
URL.revokeObjectURL(objectURL)
引数
objectURL
-
以前に
createObjectURL()
を呼び出して生成されたオブジェクト URL を表す文字列です。
返値
なし (undefined
)。
例
オブジェクト URL で画像を表示を参照してください。
仕様書
Specification |
---|
File API # dfn-revokeObjectURL |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
revokeObjectURL() static method |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- See implementation notes.
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.