How can I create a file for storage on the client side with JavaScript?

前端 未结 7 815
独厮守ぢ
独厮守ぢ 2020-12-03 18:35

I need to create a temporary file to store user settings on the client side. Is it possible to create a simple log file using JavaScript?

7条回答
  •  不知归路
    2020-12-03 19:08

    You can't create file on fly to the client side as there are Security restrictions

    but i found a nice article on file by JavaScript have a look http://www.nczonline.net/blog/2012/05/31/working-with-files-in-javascript-part-4-object-urls/

提交回复
热议问题