简体   繁体   English

您可以在没有ActiveX的情况下使用Javascript执行文件IO

[英]Can you do file IO using Javascript without ActiveX

Can you do file input/output using Javascript without using ActiveX, submitting a form to a server, or other extensions? 您可以在不使用ActiveX,不向服务器提交表单或其他扩展名的情况下使用Javascript执行文件输入/输出吗?

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的全部知识之后,我想我可能会花点时间找出所有有关炒作的内容,但是我看不到创建常规应用程序的任何方法。

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. 我想我可能会做的一个例子是,仅使用HTML5和Javascript在浏览器中创建一个简单的文本编辑器,从中可以打开和保存磁盘中的文件。 After that I was thinking to try and create some kind of icon editor using the canvas tag. 在那之后,我想尝试使用canvas标签创建某种图标编辑器。 But without any kind of file IO each example is rather pointless (in my opinion that is). 但是,没有任何类型的文件IO,每个示例都是毫无意义的(我认为是这样)。 So, is this possible? 那么,这可能吗? And if so how would I go about doing it? 如果是这样,我将如何去做呢?

Thank you! 谢谢!

Yes. 是。 See this Mozilla demo which extracts EXIF data from a local image. 请参见此Mozilla演示该演示从本地图像提取EXIF数据。 The W3C is developing an API . W3C正在开发API

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 您可以使用JavaScript但不使用ActiveX在目录中列出文件吗? - Can you list files in a directory with JavaScript but without ActiveX? 如何使用JavaScript抑制IE7 ActiveX消息? - How do you suppress IE7 ActiveX messages using javascript? 在不使用ActiveX的情况下,使用javascript创建/编写文本/ xml文件 - Creating/Writing a text/xml file using javascript without using ActiveX 如何在不使用JavaScript的情况下不使用ActiveX插件的情况下生成XML文件 - How to generate XML file without using ActiveX plugin using javascript 使用 javascript 生成 .txt 文件而不使用 activex 和本地服务器 - Generate .txt file with javascript without using activex and local server 如何在不使用javascript中的activex的情况下从客户端获取文件大小? - How to get file size from clientside without using activex in javascript? 如何在不使用ActiveX控件的情况下使用JavaScript代码打开Excel文件? - How to open excel file using JavaScript code without using ActiveX control? 如何在不使用ActiveX或Java的情况下访问文件的路径 - How do I access a file's path without using ActiveX or Java 在本地计算机上:如何使用Javascript和ActiveX下载和保存文件? - On a local machine: How can I download and save a file using Javascript and ActiveX? 你如何在不使用任何库的情况下使用ajax加载和执行javascript文件? - How can you, without using any library, load and execute a javascript file using ajax?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM