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

前端 未结 7 812
独厮守ぢ
独厮守ぢ 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:18

    You have a few options:

    • Cookies
    • localStorage
    • database

    Check this link:

    • HTML5: Client-side Storage

    Creating a file is possible only in IE using ActiveX objects.

提交回复
热议问题