在frame中访问父窗口中的变量时,无法访问

在frame中访问父窗口中的变量时,无法访问报错如下:

Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match.

主要原因是:文件之间的操作是按照跨域处理的,把文件放在web容器里

你可能感兴趣的:(JavaScript)