使用HTML5和JavaScript修改本地文件 [英] Modifying Local Files Using HTML5 and JavaScript
问题描述
是否有方法可以使用HTML5和JavaScript来修改我系统上的文件?我可以用特定的选项运行Chrome或Firefox,或以其他方式打开权限。
理想情况下,我想通过让我的浏览器在我的桌面上重命名文件来测试这个。
http://www.html5rocks.com/en/tutorials/file/filesystem/
请记住,它在主流浏览器中尚未得到支持,很可能很多访问者在一段时间内都不会升级。
Is there any way I can use HTML5 and JavaScript to modify a file on my system? I'm OK with running Chrome or Firefox with specific options or opening permissions in some other way.
Ideally I would like test this by having my browser rename a file on my desktop.
Yes, you can do this, this link details some of the available functionality:
http://www.html5rocks.com/en/tutorials/file/filesystem/
Just remember, it's not supported in the major browsers yet, and it's likely when it is many of your visitors will not upgrade for quite some time.
这篇关于使用HTML5和JavaScript修改本地文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!