客户端文件创建和下载 [英] Client side file creation and download

查看:74
本文介绍了客户端文件创建和下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Fusioncharts,它具有在客户端使用javascript导出csv数据的能力,我们希望能够获取这些数据并在浏览器中即时创建文件.那可能吗?怎么样?

We are using fusioncharts and it has the ability using javascript on the client side to export csv data, we want to be able to take that data and create a file on the fly in the browser. is that possible? How?

推荐答案

您无法设计使用Javascript触摸本地磁盘.

you have no way to touch the local disk with Javascript by design.

我认为您可以将全部数据从javascript传递到服务器端代码(php,asp.net,java ...),然后可以通过某种方式将其流式传输到浏览器.

I think you could pass the whole bunch of data from javascript to the server side code ( php, asp.net, java... ) then you could stream it down to the browser somehow.

这篇关于客户端文件创建和下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆