使用postMessage发送跨域消息,window.postMessage('hellothere!',location.protocol+'//a.b.com');但是报了下面的错误:Failedtoexecute'postMessage'on'DOMWindow':Thetargetoriginprovided('http://a.b.com')doesnotmatchtherecipientwindow'sorigin('http://c.e.com')请问是什么原因?
凤凰求蛊
相关分类