用于html 5本地存储的JQuery插件? [英] JQuery plugin for html 5 local storage?

查看:73
本文介绍了用于html 5本地存储的JQuery插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用html 5本地存储有没有好的jquery插件?

Are there any good jquery plugins for using html 5 local storage?

推荐答案

这里不需要插件,因为你可以非常快速地访问它:

There's no need for plugins here, since you can access it very quickly:

localStorage.setItem("key", "value");
var value = localStorage.getItem("key");

这并不是说将来有人不会制作插件(但是你会如何进行跨浏览器支持?无论是本地存储还是没有本地存储。但是你不需要在插件上等待任何东西,今天你可以开始使用它(如果浏览器支持它)。

That's not to say someone won't make plugins in the future (but how would you do cross-browser support? either there's local storage or there isn't). But you don't need to wait on a plugin for anything here, you can start using it (provided the browser supports it) today.

这篇关于用于html 5本地存储的JQuery插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆