solve the problem that StorageEvent won't trigger in current page
note: this only works when you setItems using localStorage.setItem('a', ...) rather than localStorage.a = ...
solve the problem that StorageEvent won't trigger in current page
JavaScript