How can JavaScript save to a local file?

后端 未结 7 1326
渐次进展
渐次进展 2020-12-29 08:27

There\'s already a solution for writing file JSON online but I want to save json file locally. I\'ve tried to use this example http://jsfiddle.net/RZBbY/10/ It creates a lin

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 09:20

    If you are using FireFox you can use the File HandleAPI

    https://developer.mozilla.org/en-US/docs/Web/API/File_Handle_API

    I had just tested it out and it works!

提交回复
热议问题