你可以使用没有ActiveX的Javascript文件IO [英] Can you do file IO using Javascript without ActiveX

查看:66
本文介绍了你可以使用没有ActiveX的Javascript文件IO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以使用Javascript进行文件输入/输出而不使用ActiveX,将表单提交到服务器或其他扩展名吗?

Can you do file input/output using Javascript without using ActiveX, submitting a form to a server, or other extensions?

我问的原因是在听完所有内容之后关于HTML5我以为我可能会花时间找出所有炒作的内容,但我看不出任何方法来创建常规应用程序。

The reason I ask is after hearing all about HTML5 I thought I might take the time to find out what all the hype is about but I can't see any way to create regular applications.

我认为我可以做的一个例子是在浏览器中仅使用HTML5和Javascript创建一个简单的文本编辑器,在那里我可以打开并保存磁盘中的文件。之后我想尝试使用canvas标签创建某种图标编辑器。但是没有任何类型的文件IO,每个例子都是毫无意义的(在我看来是这样)。那么,这可能吗?如果是这样我将如何去做呢?

An example of what I thought I might be able to do would be to create a simple text editor in the browser using only HTML5 and Javascript, where I can open and save files from the disk. After that I was thinking to try and create some kind of icon editor using the canvas tag. But without any kind of file IO each example is rather pointless (in my opinion that is). So, is this possible? And if so how would I go about doing it?

谢谢!

推荐答案

是。请参阅此Mozilla演示,该示例从本地图像中提取EXIF数据。 W3C正在开发 API

Yes. See this Mozilla demo which extracts EXIF data from a local image. The W3C is developing an API.

这篇关于你可以使用没有ActiveX的Javascript文件IO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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