使用Javascript或jQuery进行文件操作 [英] File operation using Javascript or jQuery

查看:164
本文介绍了使用Javascript或jQuery进行文件操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Javascript或jQuery进行一些文件操作,例如:

I want to make some file operation using Javascript or jQuery like:

  1. 创建文件
  2. 文件写入
  3. 已读取文件
  4. 更新
  5. 删除/删除

是否可以做上述事情?如果可能,我从哪里可以得到这个想法?请建议我.在任何一端(客户端/服务器)该怎么办?我只是想知道就问这个问题!

Is it possible to do above stuffs? If possible, from where I can get the idea? Please suggest me.In any end (client/server) how can it be done?i asked this just for know!

推荐答案

有2种感兴趣的HTML5 API.

There are 2 HTML5 APIs of interest.

文件API ,它使您可以读取文件(由用户选择).大多数现代的浏览器都实现了这一点.

The File API which allows you to read files (of a users choice). Most modern browsers implement this.

文件写入API ,可用于写入文件.到目前为止,没有浏览器实现此功能.

The File Write API which allows you to write to files. No browsers implement this as of now.

我想您也只能使用IE ActiveX 控件可在Windows上进行文件操作.

I presume you can also use IE only ActiveX controls to do file manipulation on windows.

这篇关于使用Javascript或jQuery进行文件操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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