开发者

Looking for a PersistJS type plugin for jQuery [closed]

开发者 https://www.devze.com 2023-02-03 09:56 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

Looking for a plugin that functions like PersistJS. The popular plugins I've found so far are "jStore" by Eric Garside and jStorage by Andris Reinman. What those two are missing is a fallback for a browser that does not support any local db which Pe开发者_Go百科rsistJS does using cookies. I could just refactor PersistJS for jQuery but wanted to check to see if anyone knows of one that already exists.

Looking for the plugin to include...

  • Local storage
  • google gears
  • whatwg
  • global storage
  • flash
  • ie userdata
  • cookie if all else fails

Thanks


Just because your site is using jQuery doesn't mean every single thing you do has to integrate into it. Just use PersistJS as is. We're using it in a project and it works great.

The guys from appendTo just released their amplify component library, designed to integrate with jQuery sites. One of the components is amplify.store which may be what you're looking for.

One of the benefits of amplify.store over PersistJS is that it allows you to add your own custom storage mechanisms.


If you want a light plugin (1,2k) to use Local and Session Storage having compatibilty with old browsers use this:

https://github.com/artberri/jquery-html5storage

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号