在客户端计算机上使用 javascript 存储数据? [英] Data storage with javascript on clients computer?
本文介绍了在客户端计算机上使用 javascript 存储数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道用javascript客户端计算机存储数据的方法吗?除了使用cookies.
可能有这样的lib吗?
顺便说一下,如果重要的话,我想要存储的数据并不是秘密.
Anybody knows ways to store data with javascript clients computer? Except using cookies.
May be there is such lib ?
By the way the data I want to be stored isn't secret if that matters.
推荐答案
You could use HTML 5 Local Storage. It's what the Stack Exchange network uses for global authentication. It's supported only by modern browsers but you could always gracefully fallback to cookies if not supported (IE8+, Chrome, Safari, FireFox 3.6+, and Opera 10.61+ are all supported).
这篇关于在客户端计算机上使用 javascript 存储数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文