Uncaught DOMException: Blocked a frame with origin "null" from acc
Uncaught DOMException: Blocked a frame with origin "null" from acc
解决方案
跨页面操作涉及域的概念(origin),错误的意思是:未捕获的安全错误:阻止了一个域为 null 的 frame 页面访问另一个域为 null 的页面。
代码运行时在本地直接用浏览器打开的,地址栏是 file:/// 的页面,将file:/// 改为 localhost 访问或者ip地址就行。(运行本地服务环境,如 http-server、anywhere 等)

浙公网安备 33010602011771号