Pc end development project can support multiple login window

E stay in their homes project in Hubei banks, there has been open multiple windows after, localstorage preservation information is confusing string used;

The inspection is in multiple windows, access localstorage problems caused,

Upon inquiry found, is in the browser, localstorage is global, cross-domain in the browser, a unique key;

                                       The sessionstorage is not cross-domain, can only be saved in the current window, therefore, where possible open multiple windows of the situation,

          Use sessionStorage; this will remain cached data in the current window, to avoid problems with the occurrence of a data string

Guess you like

Origin www.cnblogs.com/chenlongsheng/p/10974956.html