반응형
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 |
Tags
- ES6
- react
- 자바스크립트
- 쉬운설명
- mapGetters
- webpack
- storybook
- v-html
- TypeScript
- express
- nodejs
- HOC
- vuex
- State
- input
- Wecode
- MySQL
- sass
- Vue.js
- 리액트
- event
- Vue
- CSS
- App.vue
- scss
- Vue transition
- JavaScript
- 댓글달기
- 자료구조
- jsx
Archives
- Today
- Total
목록audio upload (1)
익명의 개발노트

오디오 tag 업로드 구현하기 기본적으로 오디오 태그는 controls 이용하면, 위 그림과 같이 내장된 툴이 생성된다. 기본적으로 파일 업로드를 위해서는 Input Tag를 이용하여 업로드를 구현해야한다. 위와 같이 input tag 를 작성했으면, 업로드를 위해서 change 이벤트를 이용해 구현하자. onAudioSelected(e){ const uploadSound = event.target.files[0]; const audioSrc = window.URL.createObjectURL(uploadSound); this.$refs.source.src = audioSrc; this.$refs.player.load(); //업로드완료 후 파일로딩 event.target.value =''; //다른거 ..
코딩일기/TIL
2020. 7. 2. 18:25