将html表导出到excel [英] exporting html table to excel
本文介绍了将html表导出到excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在尝试使用javascript将html表数据导出到excel.
我已经用谷歌搜索了.
一些代码使用Activex对象.
有些与firefox兼容.
我需要一些适用于所有浏览器的代码.
并请点击一次.
预先感谢
hi all,
i am trying to export a html table data to excel using javascript.
i have googled it.
some codes uses Activex object.
some are compatible with firefox.
i need some codes which works in all browsers.
and please ckeck it once.
Thanks in advance
推荐答案
正如hansoctantan所写,如果客户端计算机上未安装Excel,则除非使用服务器端,否则无法使用javascript将数据导出到Excel文件中.
代替Excel,将数据导出到 ^ ]文件.
As hansoctantan wrote, if Excel is not installed on client computer, you can''t export data into Excel file using javascript, unless on server side.
Instead of Excel, export data into CSV[^] file.
这篇关于将html表导出到excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文