如何保存用JavaScript编写的xml文件 [英] How to save the xml file that you've wrote with javascript
本文介绍了如何保存用JavaScript编写的xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在文章使用JavaScript编写XML"中,我认为有关如何将文件保存在您忘记的本地计算机上的信息.
On the article "Writing XML using JavaScript i think the information about how to save the file on the local machine you forgot.
Is it possible to save the xml file with a determined name?
推荐答案
如果您要谈论的是使用在浏览器上下文中运行的Javascript保存Xml格式的字符串,忘了它.基于浏览器的Javascript在沙盒环境中运行,它几乎唯一可以写入本地计算机的东西就是cookie.几乎可以肯定,您正在考虑将创建的Xml通过Web服务传递到某些服务器端脚本以进行保存.
If you''re talking about saving an Xml formatted string using Javascript running in a browser context, forget it. Browser-based Javascript runs in a sandboxed environment and pretty much the only things it can write to the local machine are cookies. You''re almost certainly looking at passing the created Xml to some server-side script over a web service in order to save it.
这篇关于如何保存用JavaScript编写的xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文