2018/04 (1) 썸네일형 리스트형 [jQuery] table 내용 엑셀다운로드 // 파일명 지정하고 할때$("#btnExcel").on("click", function () { var a = document.createElement('a'); var data_type = 'data:application/vnd.ms-excel'; var table_html = encodeURIComponent($("#tableName").html()); a.href = data_type + ', ' + table_html; a.download = '파일명.xls'; a.click(); e.preventDefault(); }); 출처 : http://toyuq.tistory.com/37 이전 1 다음