javascript可以访问文件系统吗? [英] Can javascript access a filesystem?
本文介绍了javascript可以访问文件系统吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我很确定答案是 NO ,因此google gear,adobe AIR等等。
I was pretty sure the answer was NO, and hence google gears, adobe AIR, etc.
如果我是对的,那么 http://tiddlywiki.com 如何运作?它是持久的,用javascript编写。它也只是一个没有外部(服务器端)依赖项的HTML文件。 WTF?在哪里/如何存储其状态?
If I was right, then how does http://tiddlywiki.com work? It is persistent and written in javascript. It is also just a single HTML file that has no external (serverside) dependencies. WTF? Where/how does it store its state?
推荐答案
Tiddlywiki有几种保存数据的方法,具体取决于使用的浏览器。 正如您在源代码中看到的那样。
Tiddlywiki has several methods of saving data, depending on which browser is used. As you could see in the source.
- 如果启用了ActiveX,它将使用Scripting.FileSystemObject。
- 在基于Gecko的浏览器上,它会尝试使用UniversalXPConnect。
- 如果启用了Java,它将使用TiddlySaver Java小程序。
- 如果 Java LiveConnect ,它尝试使用Java的文件类。
- If ActiveX is enabled, it uses Scripting.FileSystemObject.
- On Gecko-based browsers, it tries to use UniversalXPConnect.
- If Java is enabled, it uses the TiddlySaver Java applet.
- If Java LiveConnect is enabled, it tries to use Java's file classes.
这篇关于javascript可以访问文件系统吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文