客户端持久化存储 [英] Persistent storage on client side

查看:34
本文介绍了客户端持久化存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了客户端的 cookie 之外,还有什么方法可以拥有一些持久性数据(例如 XML 文件等)?我知道直接使用 JavaScript 是不可能的.但是还有其他方式,例如 Applets 之类的吗??

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 way like Applets or something??

推荐答案

如果 cookie 不够用,并且您必须支持旧浏览器,那么 LawnChair 可能会有所帮助:http://brian.io/lawnchair/plugins/

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 ;).

而且,它确实适用于桌面浏览器,尽管网站上有关于移动 webkit 的宣传:https://github.com/brianleroux/lawnchair/blob/master/README.md.

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.

(但是,它使用 cookie 作为适配器来存储那些旧浏览器的回退数据,大多数此类库可能会,如果由于某种原因不允许您使用 cookie,这些类型的库可能不适合账单.)

(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.)

这篇关于客户端持久化存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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