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

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

问题描述

有什么办法在客户端有一定的持久性数据(如XML文件或左右)除了饼干?我知道,直接是不可能的JavaScript。但是,或任何其他方式像小程序的东西??

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??

推荐答案

如果饼干是不够的,你必须支持旧的浏览器,然后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作为适配器来存储数据,这些旧的浏览器回退,大多数这样的图书馆可能会,如果你不允许使用cookies出于某种原因,这些类型的库可能不适合的法案。)

(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天全站免登陆