iOS Safari私密浏览localStorage和sessionStorage支持? [英] iOS Safari Private Browsing localStorage and sessionStorage Support?
问题描述
我在StackOverflow上发现了一些问题,解决了iOS Safari私密浏览和 sessionStorage
和 localStorage
的特定功能。但是我无法找到一个明确的资源来表示iOS Safari对 sessionStorage
和 localStorage
的支持私人浏览。
I have found a few questions here on StackOverflow addressing specific functionality with iOS Safari Private Browsing and sessionStorage
and localStorage
. But I haven't been able to find a definitive resource denoting the support that iOS Safari has for sessionStorage
and localStorage
when Private Browsing.
对此有何支持,或Apple是否有任何特定资源表示此功能?普遍的共识是,没有polyfill, localStorage
完全没有支持, sessionStorage
也是如此?
What support is there for this or is there any specific resource from Apple denoting this functionality? The general consensus is that localStorage
is not at all supported without a polyfill, does the same goes for sessionStorage
?
非常感谢你!
推荐答案
我认为没有适用于iOS的任何特定资源,但这里是Apple的官方文档:
I don't think there is any specific resource for iOS, but here's Apple's official documentation:
此StackOverflow问题非常有用:
And this StackOverflow question is pretty useful as well:
QuotaExceededError:Dom例外22:尝试了向存储中添加一些东西取消配额
一般情况下,解决 sessionStorage
和 localStorage
,尝试在手机上使用Safari进行本地开发,并打开Web Inspector。祝你好运:)
In general, when solving for sessionStorage
and localStorage
, try actually developing locally with Safari on your phone with Web Inspector open. Good luck :)
这篇关于iOS Safari私密浏览localStorage和sessionStorage支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!