# H5table2excel **Repository Path**: hidden-bamboo-smile/H5table2excel ## Basic Information - **Project Name**: H5table2excel - **Description**: js生成excel导出,压缩zip导出 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-05 - **Last Updated**: 2021-11-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: JavaScript, Excel, zip ## README # H5table2excel * html export table to excel * 可将多个table导出到多个excel多张sheet表中 * 可导出excel或使用jszip将其导出到zip文件 # 快速开始 * 可查看示例 * 引入即可 ``` //依赖jquery,请先引入jq文件 ``` * option ``` $(selector).table2excel({ exclude: ".noExl",//whats class tr has is not export to file filename: "hello_excel" + new Date().getTime() + ".xls",//whats name the file exported preserveColors: true ,// set to true if you want background colors and font colors preserved.The default is false preserveHtmlStyle: true //set to true if you want common html-css preserved(exclude color).The default is false }); ``` * if you want more one table in one sheet or more one sheet * you can add attribute "data-SheetName" in table html # other *is used jszip to generate zip