Bootstrap

html导出excel多sheet,js 导出多sheet表格

var tablesToExcel = (function() {

var uri = "data:application/vnd.ms-excel;base64,",

html_start = ``,

template_ExcelWorksheet = `{SheetName}`,

template_ListWorksheet = ``,

template_HTMLWorksheet =

`

------=_NextPart_dummy

Content-Location: sheet{SheetIndex}.htm

Content-Type: text/html; charset=utf-8

` +

html_start +

`

`,

template_WorkBook =

`MIME-Version: 1.0

X-Document-Type: Workbook

Content-Type: multipart/related; boundary="----=_NextPart_dummy"

------=_NextPart_dummy

Content-Location: WorkBook.htm

Content-Type: text/html; charset=utf-8

` +

html_start +

`

This page uses frames, but your browser does not support them.

;