1

for my website, I need to create a button where a user is prompted to import an excel file, and then be able to use that data in an html file, for example, to put in a div tag.

I've searched stack overflow, but the closest I could find was Javascript pulling from excel

Which only works for internet explorer and doesn't explain how to import or export the excel file.

Can this sort of thing even be done?

4

1 回答 1

3

您可能必须excel在服务器上处理该文件。或者让用户提供可以使用 javascript 处理的 CSV 文件(从 excel 导出)。

该站点可以上传excel格式的数据,然后在服务器上使用-:

或者

客户端有一个 javascript 库http://code.google.com/p/jquery-csv/这将有助于使用 js 输出 CSV 数据。但这需要 CSV 格式。

于 2013-04-23T13:20:06.160 回答