250x250
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- display
- slideChange
- v-bind
- querySelector
- eslint prettier
- swiper
- archiver
- centerSlides
- Vue
- watchOverflow
- error
- prettier
- activeIndex
- index
- js
- eslint
- vscode
- jquery
- swiperOption
- loop:true
- 인덱스
- vue2
- slidePerView
- CORS
- javascirpt
- JavaScript
- slidePerGroup
- css
- classlist
- realIndex
Archives
- Today
- Total
코딩하는 둥둥
[File API] URL.createObjectURL() 본문
728x90
URL.createObjectURL()
- 특정 file이나
blob🔗 객체를 url로 만들때 사용하는 메서드 - 주어진 객체를 가리키는 url을
DOMString으로 변환한다. - 해당 url은 window창이 사라지면 함께 사라지기 때문에 다른 window에서 재활용이 불가능하며 수명이 한정되어 있다.
- 객체의 url 사용을 마쳤을 경우,
window.URL.revokeObjectURL(objectURL);을 사용해 메모리에서 해제하는것이 좋다.
References.
https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
https://ohgyun.com/446
https://kyounghwan01.github.io/JS/JSbasic/Blob-url/
728x90
'Frontend > JavaScript' 카테고리의 다른 글
| location.href와 location.replace의 차이점 (0) | 2023.01.15 |
|---|---|
| [ npm] Archiver (0) | 2023.01.15 |
| [File API] Bolb (Binary Large Object) (0) | 2022.11.19 |
| this.'X' is not a function (0) | 2022.11.19 |
| [Violation] 'setInterval' handler took 158ms (0) | 2022.11.19 |