-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# tableExport.js # | ||
# tableExport.js | ||
|
||
`table`导出文件,支持导出`json`、`txt`、`csv`、`xml`、`doc`、`xls`、`image`、 `pdf`。 | ||
|
||
# usage # | ||
## usage | ||
|
||
```javascript | ||
// dom id, filename, type: json, txt, csv, xml, doc, xsl, image, pdf | ||
tableExport('table1', 'test', 'image'); | ||
``` | ||
|
||
# build # | ||
## build | ||
|
||
```bash | ||
git clone [email protected]:huanz/tableExport.git | ||
|
@@ -22,3 +22,19 @@ 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](https://github.com/eligrey/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](https://github.com/eligrey/Blob.js) | | ||
| Safari 6.1+* | Blob | No | ? | None | | ||
| Safari < 6 | data: URI | No | n/a | [Blob.js](https://github.com/eligrey/Blob.js) | | ||
|