Data supported by HTML5 Local Storage

2019-07-16 13:34发布

问题:

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.