标签:log 传递 接受 message script 窗口 data console win
window.parent.postMessage(‘向父窗口传递值‘,*);
documnet.querySelector(‘iframe‘).postMessage(‘向iframe传递值‘,*);
window.addEventList(‘message‘, (e) => {
console.log(e.data);
});
标签:log 传递 接受 message script 窗口 data console win
原文地址:https://www.cnblogs.com/liangcheng11/p/9005935.html