Data supported by HTML5 Local Storage

三世轮回 提交于 2020-01-04 10:59:09

问题


Can i use a Local Storage object to store another Local Storage object ? Thank u in advance


回答1:


You can store any object in Web Storage, as long as you can stringify it. But you have only one instance of localStorage in your browser, so you don't have to ask if you can do that, because you can't create new instances.



来源:https://stackoverflow.com/questions/10269334/data-supported-by-html5-local-storage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!