通信
postmessage
// 发送消息
let otherWindow = window.open("./b.html", "_blank");
otherWindow.postMessage("hello world");
// 接收消息
window.addEventListener("message", receiveMessage, false);
function receiveMessage(event) {
var origin = event.origin;
console.log(event);
}