如何使用html代码将html页面转换为excel
如何使用html代码将html页面转换为excel
how to convert html page to excel using html code
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何使用html代码将html页面转换为excel
how to convert html page to excel using html code
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
你不能。您需要使用服务器端语言。
You can't. You would need to use a server-side language.
HTML 不是一种编程语言,而是一种标记语言(因此得名)。因此,它将无法将任何内容转换为任何其他格式,包括 Excel。
完成您正在寻找的内容的最简单方法是以某种方式将该 HTML 页面转换为逗号分隔格式,因为许多编程语言可以解析 CSV 格式,并且 Excel 可以导入 CSV 文件并从中创建电子表格。
HTML is not a programming language, it's a markup language (hence the name). Therefore, it will not be able to convert anything to any other format, including excel.
The easiest way to accomplish what you're looking for would be to convert that HTML page to a comma separated format in some fashion, as many programming languages can parse a CSV format, and Excel can import a CSV file and create a spreadsheet from it.