Is Local Storage Persistant?
问题 I'm using Local Storage for a Chrome extensions. When I set the local storage using localStorage['tracking'] = false; ... and then check to is local storage set using: if(localStorage['tracking']) { alert('set'); } else { alert('Not Set'); localStorage['tracking'] = true; } It works fine. It sets tracking to true if unset and remains set. But if I go to a new tab, and to the same page I was on in the other tab, it returns unset. Is there any way for local storage to remain persistant, even