纯前端展示excel表格
fork from : https://github.com/sumile-ting/excel-preview.git

zhuwei c8ba865744 再次选择相同文件表格内容不更新bug修改 5 سال پیش
css 17227a7989 插件化和gulp打包 5 سال پیش
js c8ba865744 再次选择相同文件表格内容不更新bug修改 5 سال پیش
.babelrc 17227a7989 插件化和gulp打包 5 سال پیش
.gitignore 17227a7989 插件化和gulp打包 5 سال پیش
README.md c2139e7f64 Update README.md 5 سال پیش
gulpfile.js 17227a7989 插件化和gulp打包 5 سال پیش
index.html 17227a7989 插件化和gulp打包 5 سال پیش
package-lock.json 84e46693f2 初始化项目 6 سال پیش
package.json c8ba865744 再次选择相同文件表格内容不更新bug修改 5 سال پیش

README.md

jQuery excelPreview Plugin (https://github.com/sumile-ting/excel-preview)

选择一个excel文件,将所选得excel表格展示在页面上

Install excel-preview and dependencies

npm install excel-preview --save

Include jquery and table2excel in your page

<script src="node_modules/jquery/dist/jquery.min.js" type="text/javascript"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
<script src="node_modules/bootstrap-table/dist/bootstrap-table.min.js" type="text/javascript"></script>
<script src="node_modules/bootstrap-table/dist/locale/bootstrap-table-zh-CN.min.js" type="text/javascript"></script>
<script src="node_modules/xlsx-style/dist/xlsx.full.min.js" type="text/javascript"></script>
<script src="js/dist/excel-preview.min.js"></script>

Using the plugin

<input type="file" name="file">
<div id="yourExcelTable"></div>
$("#yourExcelTable").excelPreview({});

index.html

Contains a simple HTML file to demonstrate the plugin.

dist/ This is where the generated files are stored once gulp runs.

gulpfile.js Contains all automated tasks using fulp.

package.json Specify all dependencies loaded via Node.JS.

Check NPM for more details.

License

MIT License