简体   繁体   English

Chrome,导出 html 表到 Excel

[英]Chrome, Export html table to Excel

Chrome is missing ability to export html table to Excel like Internet Explorer have. Chrome 缺少像 Internet Explorer 一样将 html 表导出到 Excel 的能力。 Is there any workaround for this?有什么解决方法吗?

I think that might be quite easy to select part of text in table and loop with Javascript and get the table without knowing table class name.我认为 select 部分文本在表格中并使用 Javascript 循环并在不知道表格 class 名称的情况下获取表格可能很容易。

Somekind partial solution is this bookmarklet which takes table data by selection, converts it to csv and add whole thing to textarea below the original table.某种部分解决方案是这个小书签,它通过选择获取表格数据,将其转换为 csv 并将整个内容添加到原始表格下方的 textarea 中。

https://gist.github.com/poezn/4278379 https://gist.github.com/poezn/4278379

For the 2022 reader.对于 2022 年的读者。 There are a few Chrome extensions available to do this.有一些 Chrome 扩展程序可用于执行此操作。

Table Capture works pretty well. 表捕获工作得很好。 There's a paid feature to export to CSV, but I just use copy to clipboard (which is CSV data) then paste into a text file, and name my-table.csv.有一个付费功能可以导出到 CSV,但我只是使用复制到剪贴板(这是 CSV 数据)然后粘贴到文本文件中,并命名为 my-table.csv。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM