如何使用Javascript将节点添加并保存到C盘中的Xml文件? [英] How Do I Add And Save Nodes To Xml File In C Drive Using Javascript?
本文介绍了如何使用Javascript将节点添加并保存到C盘中的Xml文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想添加并保存另一个节点< message>我的XML文件books.xml在c驱动器上具有不同的值。
我的XML文件是
I want to add and save another node <message> to my XML File books.xml on "c" drive with different values.
My XML file is
<book>
<message>
<name></name>
<email></email>
<location></location>
<gtalk></gtalk>
<comment></comment>
</message>
</book>
推荐答案
JavaScript和jQuery属于这个世界浏览器...浏览器中的网页无法访问本地存储。 JavaScript根本没有IO的功能...所以你不能使用JavaScript或jQuery读/写任何文件......
JavaScript and jQuery belong to the world of the browsers...A web page inside a browser can not access the local storage. JavaScript has no functions for IO at all...So you can not read/write any file using JavaScript or jQuery...
这篇关于如何使用Javascript将节点添加并保存到C盘中的Xml文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文