HTML5中的localStorage如何工作? [英] How Does localStorage in HTML5 work?

查看:93
本文介绍了HTML5中的localStorage如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML5中的 localStorage 如何运作?我搜索了每个地方(甚至在 SO 中)以找到localStorage的实际内部逻辑,但最后我访问了一些使用localStorage的示例。我没有找到任何有用的答案我的问题。有人可以给我发一个链接或解释 localStorage的工作

How Does localStorage in HTML5 work? I searched every where (even in SO ) to find the actual internal logic of localStorage, but I ended up with visiting some examples which uses localStorage. I haven't found any useful Answer to my question. Can Someone post me a link or explain about the working of localStorage

推荐答案

我不一定确定你在这里寻找什么......但 localStorage 的内部实现将是特定于浏览器的。我不会指望任何两个浏览器在内部以相同的方式实现该功能(就像所有内容一样,实现和性能将为每个浏览器提供不同的优势)。

I'm not necessarily sure what you're looking for here...but the internal implementation of localStorage is going to be browser specific. I wouldn't count on any two browsers implementing the feature the same way internally (just like everything, the implementation and performance will give each browser a different advantage).

如果你真的很感兴趣,我建议你下载Chromium来源,看看它们是如何在内部实现的。

If you're really interested, I'd suggest pulling down the Chromium source and seeing how they implement things internally.

这篇关于HTML5中的localStorage如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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