디티트래커

디티트래커

반응형
  • Folders (122)
    • python (88)
    • Dev (13)
    • Data Analyst (21)
    • 독서&자기계발 (0)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

디티트래커

컨텐츠 검색

태그

php 개발자 신문스크랩 Def PYTHON 비전공개발자성장스토리 매일경제 파이썬 EomCoding 알고리즘 프로그래밍 코딩 Algorithm 엄코딩 coding codingtest 비전공개발자 GA4 Programming 코딩테스트

최근글

댓글

공지사항

아카이브

js excel down(1)

  • JS 정규식으로 원하는 태그 제거하기 ( 테이블표 엑셀출력 과정 JS EXCEL DOWN )

    function tableToExcel(id, title) { var data_type = 'data:application/vnd.ms-excel;charset=utf-8'; var table_html = encodeURIComponent(document.getElementById(id).outerHTML.replace(/]*)>/gi, "")); var a = document.createElement('a'); a.href = data_type + ',%EF%BB%BF' + table_html; a.download = title + '.xls'; a.click(); } 위와 같은 함수를 사용해서 html의 table코드 그대로 엑셀로 다운받게 하는 과정에서 table코드 안에 있는 a태그로 감싸진 내용..

    2022.05.20
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바