报错信息:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://a.page.com') does not match the recipient window's origin ('http://b.page.com')
解决方式:在子页面使用postMessage时指定origin
例如:
const host = 'http://b.page.com'
window.parent.postMessage({data: 'test'}, host);