跨窗口通信(Broadcast Channel)2024-02-15 11:23:43 1. Broadcast Channel(只要是在同一原始域和用户代理下) 发送信息页面 const bc = new BroadcastChannel('kevin') bc.postMessage('hhh') 接受信息页面 let clickChannel = new BroadcastChannel('click') clickChannel .onmessage = (e) => { console.log('e :>> ', e)// 发送的数据 } 2. 上一篇:ADB 操作手机的粘贴板下一篇:join分析:shuffle hash join、broadcast hash join