在 Firefox 中查看 CSV

发布于 2024-12-04 00:09:40 字数 192 浏览 6 评论 0原文

我正在编写一个输出 CSV 文件的脚本,每次运行该脚本来调试下一步时都尝试打开 CSV,这很痛苦。有没有办法直接在 FireFox 中打开 CSV。我知道有一个 JSON 插件,但找不到CSV 插件

I'm working on a script that outputs CSV files, and it's a pain to try to open CSV every time I run the script to debug the next step. Is there a way to open CSV directly in FireFox. I know there's a plugin for JSON, but couldn't find a plugin for CSV

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

时光病人 2024-12-11 00:09:40

答案:

(我正在测试,可以在 2020 年回来)

Answer:

(I am testing and can back in 2020)

可可 2024-12-11 00:09:40

前面提到的 Firefox 插件似乎已经过时了。我发现另一个插件可能就是您正在寻找的东西为了。

The previously-mentioned Firefox add-on appears to be outdated. I found another plugin that might be something you are looking for.

晨敛清荷 2024-12-11 00:09:40

如果标题服务正确,则可以直接使用文本文件形式的简单预览,例如
https://raw.githubusercontent.com/plotly/datasets/master/mtcars。 csv

否则尝试将 view-source: 放在地址之前:
查看源代码:https://raw.githubusercontent.com/plotly/datasets/master/mtcars.csv

If the header is served correctly, a simple preview as a text file might work directly, e.g.
https://raw.githubusercontent.com/plotly/datasets/master/mtcars.csv

Otherwise try to put view-source: before the address:
view-source:https://raw.githubusercontent.com/plotly/datasets/master/mtcars.csv

注定孤独终老 2024-12-11 00:09:40

Firefox 应该能够在没有插件的情况下处理 CSV 内容。
您在脚本中使用什么内容类型?

header("Content-type: application/csv");
header("Content-Disposition: attachment; filename=file.csv");

Firefox should be able to handle CSV content without a plug-in.
What content-type are you using in your script?

header("Content-type: application/csv");
header("Content-Disposition: attachment; filename=file.csv");
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文