Persistent storage on client side

前端 未结 8 2091
故里飘歌
故里飘歌 2020-12-19 04:27

Is there any way to have some persistent data (like an XML file or so) apart from cookies at client side? I know that\'s not possible with JavaScript directly. But any other

相关标签:
8条回答
  • 2020-12-19 04:39

    The latest browsers are supporting HTML5 Local Storage.

    If the client doesn't support HTML 5, the Google Gears plugin allows local storage.

    0 讨论(0)
  • 2020-12-19 04:43

    We have been using YUI's local storage wrapper without any issue for quite some time. The library automatically uses best available storage option and supports almost all browsers; IE6+, Firefox2.0+, and newer Safari, Chrome and Opera.

    0 讨论(0)
  • 2020-12-19 04:44

    If cookies won't suffice, and you have to support older browsers, then LawnChair might help: http://brian.io/lawnchair/plugins/

    It's like a "Couch" but smaller, get it? Took me a few minutes ;).

    And, it does work for desktop browsers, despite the blurb on the site about mobile-webkit: https://github.com/brianleroux/lawnchair/blob/master/README.md.

    (But, it uses cookies as the adapter to store data for the fallback on those older browsers, most such libraries probably will, if you're not allowed to use cookies for some reason, these types of libraries might not fit the bill.)

    0 讨论(0)
  • 2020-12-19 04:46

    I happened to stumble across this Wiki page that lists down a lot of persistent JS stores : https://github.com/bebraw/jswiki/wiki/Storage-libraries

    0 讨论(0)
  • 2020-12-19 04:47

    HTML5 local storage

    0 讨论(0)
  • 2020-12-19 04:47

    If you're working in Google Chrome, FSO.js wraps the asynchronous FileSystem API for you and is very easy to use.

    This technology should be supported by other browsers soon.

    0 讨论(0)
提交回复
热议问题