本文介绍了JavaScript代码保存一个txt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在创建文件后,它将保存为诊断对话框。
可以任何机构告诉我如何使用JavaScript兼容浏览器来创建.txt文件。所以我可以保存创建的文件。
其他任何逻辑也是很好的
我在做它在IE中很好,
但是相同的代码没有在其他浏览器中运行
解决方案
在这篇文章中
can any body tell me how i create a .txt file using javascript which is browser compatable too.
and after creating the file it gives the save as diaglog box so that i can save the file that is created.
any other logic is also wellcome
i am doing it well in IE,
but the same code isn't running in the other browsers
解决方案
In this post In Firefox, Write to a File using Javascript?
这篇关于JavaScript代码保存一个txt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!