#communication

localStorage通过监听window对象的“onstorage”事件,其他窗口获取到本窗口发送的消息,注意,必须是同一款浏览器,并且在同一个域名下。 发送消息页面: 12345678910111213141516171819<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Page A</title> <script> function setTime() { localStorage.setItem('currentTime', (new Date()).getTime()); } </scri...

阅读更多

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×