iframe 父子级传值
父级:
接收消息:
window.addEventListener('message', function(e){
console.log('父级接收消息------->',e)
}, false);
发送消息:
<button @click="getInfo">发送消息</button>
info:{
message: "Hello Son!"
}
getInfo(){
var sonIframe= document.get
原创
2021-10-09 17:18:11 ·
123 阅读 ·
0 评论