Is it possible to write to a file (on a disk) using JavaScript?

后端 未结 9 1139
走了就别回头了
走了就别回头了 2020-11-28 14:51

I am a novice-intermediate programmer taking a stab at AJAX. While reading up on JavaScript I found it curious that most of the examples I\'ve been drawing on use PHP for su

9条回答
  •  清酒与你
    2020-11-28 15:05

    The short answer is no; you cannot by default write a file to the local disk, by using plain JavaScript in a browser. You'll need a helper to do that. For example, TiddlyWiki is a wiki engine that is just a single, static HTML file, but it can write itself to disk with the help of a Java applet (Tiddly Saver).

提交回复
热议问题