将HTML表导出为ex​​cel - 使用jQuery或Java [英] Export HTML table to excel - using jQuery or Java

查看:113
本文介绍了将HTML表导出为ex​​cel - 使用jQuery或Java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的JSP页面上有一个HTML表格,我想通过按钮点击导出到Excel。

最好的方法是什么?
(For例如,我该如何使用可能是一个jQuery函数。)

I've a HTML table on my JSP page, that I want to be exported to Excel on a button click.
What would be the best way of going about this ?
(For ex., how would I do this using may be a jQuery function.)

演示的任何代码示例。

Any code examples for demo. purposes should be great.

谢谢,

Pritish。

Thanks,
Pritish.

推荐答案

我建议 Apache POI ,我们一直在使用它多年,从来没有问题。

I would recommend Apache POI, we've been using it for years, never had any problems.

网络上的很多示例可以获得一个很好的开始,网站上的文档也很好: http://poi.apache.org/spreadsheet/quick-guide.html

Alot of examples online to get a good start, and the documentation on the site is also good: http://poi.apache.org/spreadsheet/quick-guide.html

这篇关于将HTML表导出为ex​​cel - 使用jQuery或Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆