问题描述
我知道JavaScript中没有实现File Save对话框,但是可以使用Flash来完成。我正在寻找在Flash中的lib或源代码,可以为我做,这样我就可以通过JavaScript调用它。 JavaScript知道数据和文件名,我只是想打开一个文件保存对话框。
另外,是否有可能一次保存多个文件?用户可以创建几个文件并保存它们,所以,如果我不需要打开每个写入的对话框就好了。 :)
Doug Neiner的Downloadify是一个Flash / JS库。 $ b
主域似乎因为某些原因而失效,但是这里是Doug的。 p>
是一篇解释使用情况的博文。
I know that there is no implementation of File Save Dialog in JavaScript as of now, but it can be done with Flash. I am looking for a lib or source code in Flash that could do it for me so that I can call it via JavaScript. JavaScript knows the data and filename, I just want to open a file save dialog.
Also, would it be possible to save multiple files at once? The user may create a couple of files and save them, so, it would be nice if I need not open the dialog for each write. :)
Doug Neiner's Downloadify is a Flash/JS library that does this.
The main domain seems gone for some reason, but here is Doug's Github page.
Here is a blog post explaining the usage.
这篇关于使用Flash打开一个文件保存对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!