Skip to content

tableExport(table导出文件,支持json、csv、txt、xml、word、excel、image、pdf)

Notifications You must be signed in to change notification settings

huanz/tableExport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tableExport.js

table导出文件,支持导出jsontxtcsvxmldocxlsimagepdf

usage

// dom id, filename, type: json, txt, csv, xml, doc, xsl, image, pdf
tableExport('table1', 'test', 'image');

build

git clone [email protected]:huanz/tableExport.git
cd tableExport
npm i

// 开发
npm run dev

// 构建个人版本
MODULES='doc xls image' npm run build

browsers

Browser Constructs as Filenames Max Blob Size Dependencies
Firefox 20+ Blob Yes 800 MiB None
Firefox < 20 data: URI No n/a Blob.js
Chrome Blob Yes [500 MiB][3] None
Chrome for Android Blob Yes [500 MiB][3] None
Edge Blob Yes ? None
IE 10+ Blob Yes 600 MiB None
Opera 15+ Blob Yes 500 MiB None
Opera < 15 data: URI No n/a Blob.js
Safari 6.1+* Blob No ? None
Safari < 6 data: URI No n/a Blob.js

About

tableExport(table导出文件,支持json、csv、txt、xml、word、excel、image、pdf)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages