使用HTML5和JavaScript修改本地文件 [英] Modifying Local Files Using HTML5 and JavaScript

查看:93
本文介绍了使用HTML5和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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆