이 번역은 완료되지 않았습니다. 이 문서를 번역해 주세요.

URL.revokeObjectURL() 정적 메소드는 이미 존재하고 있는 URL 개체를 해제합니다. 이 개체는 URL.createObjectURL().를 호출하여 이전에 생성된 것입니다.  URL 개체 사용을 완료했을 때 이 메소드를 호출하여 브라우저가 더 이상 이 파일에 대한 참조를 유지할 필요가 없도록 하십시오.

주의: This feature is available in Web Workers.

Note: This method is not available from service workers, due to issues with the Blob interface's life cycle and the potential for leaks.

Syntax

window.URL.revokeObjectURL(objectURL);

Parameters

objectURL
A DOMString representing a object URL that was previously created by calling createObjectURL().

Return value

Void.

Examples

Using object URLs to display images. 를 보세요

Specification

Specification Status Comment
File API
The definition of 'revokeObjectURL()' in that specification.
Working Draft Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
revokeObjectURL
Experimental
Chrome Full support 8Edge Full support 12Firefox Full support 19
Notes
Full support 19
Notes
Notes revokeObjectURL() is no longer available within the context of a ServiceWorker.
IE Full support 10Opera Full support 15Safari Full support 6WebView Android Full support YesChrome Android Full support 18Firefox Android Full support 19
Notes
Full support 19
Notes
Notes revokeObjectURL() is no longer available within the context of a ServiceWorker.
Opera Android Full support 14Safari iOS Full support 6Samsung Internet Android Full support Yes

Legend

Full support  
Full support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
See implementation notes.
See implementation notes.

See also

문서 태그 및 공헌자

이 페이지의 공헌자: mdnwebdocs-bot, moonyl
최종 변경자: mdnwebdocs-bot,