본문 바로가기

개발쬬

검색하기
개발쬬
프로필사진 Joooooooo

  • 분류 전체보기 (83)
    • 쬬의 기초정리 (13)
    • 쬬는 개발중 (36)
    • 쬬의 Vue (12)
    • 쬬의 React (14)
    • 쬬의 CSS (6)
    • 설정 (0)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
  • 내 벨로그
«   2025/08   »
일 월 화 수 목 금 토
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
  • form
  • components
  • Package
  • VUE
  • error
  • 시멘틱태그
  • err
  • 상태관리
  • vscode
  • type
  • 프론트엔드
  • Download
  • TradingVIew
  • npm
  • Chart
  • axios
  • FRONT
  • NeXT
  • antd
  • frontend
  • 리액트
  • 리액트기초
  • react
  • 이미지
  • useState
  • 프론트엔드개발
  • vue-cli-service
  • JavaScript
  • develop
  • CSS
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Excel (1)

개발쬬

[axios] 엑셀 파일 다운로드 기능 구현하기

엑셀 파일 다운로드 javascript 를 사용하여 a 태그에 받은데이터를 넣어서 동작 구현이 가능하다. api에 속성과 입력값에 따라 params 값을 설정해주고 responseType 을 설정해준다 axios({ url: "/report", methods: "GET", params: { year: this.year, month: this.month, xls: "Y", xlsLimit: "300" }, responseType: "blob" //responseType 설정 }).then(res => { const url = window.URL.createObjectURL(new Blob([res.data])); const link = document.createElement("a"); link.href ..

쬬는 개발중 2022. 12. 4. 12:26
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바