问题
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