1. Talking about two methods to realize the communication between multiple tabs in the browser
When localstorge is added, modified or deleted in a tab, a storage event will be triggered. By listening to the storage event in another tab, you can get the value stored in localstorge and realize the communication between different tabs.