javascript - How is the compatibility of sessionstorage and localstorage on mobile terminals?
巴扎黑
巴扎黑 2017-06-05 11:13:42
0
4
1024

Like the title,
The following are the search results for can i use
,
I would like someone with practical experience to answer the question, can it be used in a production environment?
The current search results are roughly as follows,
1, in the incognito mode of each browser, storage has no value,
2, ios5/6 may be cleared under certain circumstances.
Above Is this true in actual circumstances? Are there any other possibilities?

巴扎黑
巴扎黑

reply all(4)
过去多啦不再A梦

Our company’s products use a lot of localstorage/sessionstorage. There is no big problem with the compatibility of this product, whether on PC (if you want to consider compatibility with IE6/7, I didn’t say that) or on mobile.
However, there are a few things you need to pay attention to when using it:

  • When using this product, remember to try catch to ensure that no exceptions will occur

  • The browser will report an error when setItem is in private mode

It is best to pack it yourself, so it is more convenient to use.

左手右手慢动作

The mobile compatibility is very good. If it is a Webapp, you need to enable permissions on the app side first.
ios 5 / 6, now ios 9 / 10 /11 Please wake up, Kobe Bryant has retired.

習慣沉默

No problem. I have used sessionstorage for several projects and there is no problem at all

曾经蜡笔没有小新

http://caniuse.com/#search=lo...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template