Duplicate Tab copying sessionStorage in Chrome

北城余情 提交于 2019-12-06 18:54:45

问题


When a tab is duplicated in Chrome, is sessionStorage also duplicated?

I noticed that in IE it is not.


回答1:


In Chrome, Yes. And you've hit on an important distinction. The contents of sessionStorage is "copied" not "shared". Any changes made to sessionStorage after the tab is duplicated are not reflected in the other tab's sessionStorage.




回答2:


Yes, if you duplicate the tab, the sessionStorage data is also duplicated on the copied tab.



来源:https://stackoverflow.com/questions/21463696/duplicate-tab-copying-sessionstorage-in-chrome

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