HTML&CSS | 데이타테이블 : 엑셀다운로드
페이지 정보
작성자 굿스웹 작성일20-01-14 10:03 조회713회 댓글0건관련링크
본문
.js
table id="esTables" class="table table-bordered table-hover"
데이타 리스트 엑셀 다운로드 / csv utf-8 데이타 깨진현상 안생기도록 옵션처리
var buttons = new $.fn.dataTable.Buttons(table, {
buttons:[
{
extend:'collection',
text: '내보내기',
className:'btn',
buttons: [
{ extend: 'copyHtml5', footer: true },
{ extend: 'excelHtml5',
text: 'Excel',
footer: true,
filename: $('.box-title b').html(),
title: $('.box-title b').html(),
exportOptions:{
columns: ':visible'
}
},
{ extend: 'csvHtml5',
footer: true,
stripHtml: false,
extension: '.csv',
charset: 'utf-8',
fieldBoundary: '',
filename: $('.box-title b').html(),
orientation:'landscape',
title: $('.box-title b').html(),
bom: true
},
{ extend: 'pdfHtml5', footer: true },
{ extend: 'print', footer: true}
]
}
]
#엑셀다운로드
table id="esTables" class="table table-bordered table-hover"
데이타 리스트 엑셀 다운로드 / csv utf-8 데이타 깨진현상 안생기도록 옵션처리
var buttons = new $.fn.dataTable.Buttons(table, {
buttons:[
{
extend:'collection',
text: '내보내기',
className:'btn',
buttons: [
{ extend: 'copyHtml5', footer: true },
{ extend: 'excelHtml5',
text: 'Excel',
footer: true,
filename: $('.box-title b').html(),
title: $('.box-title b').html(),
exportOptions:{
columns: ':visible'
}
},
{ extend: 'csvHtml5',
footer: true,
stripHtml: false,
extension: '.csv',
charset: 'utf-8',
fieldBoundary: '',
filename: $('.box-title b').html(),
orientation:'landscape',
title: $('.box-title b').html(),
bom: true
},
{ extend: 'pdfHtml5', footer: true },
{ extend: 'print', footer: true}
]
}
]
#엑셀다운로드
[주소복사] https://www.goodsweb.kr/?u=D417NuB4
SNS 알리기
핀터레스트
텔레그램로
블로그로
페이스북
트위터
카카오스토리
카톡 공유
관련 블로그
로딩중