在a页面打开一个窗口b并监听message事件$("#loginIn").click(function() { window.open('b.html','_blank','width=670,height=350,left=300,top=100')
})window.addEventListener('message', function(ev) { console.log(ev.data)
},false)b页面window.parent.postMessage('success','http://'+window.location.host)然后console出来的data为什么没有这个success字符串??
添加回答
举报
0/150
提交
取消
