例如:
<iframe src="http://blog.sina.com.cn/" width="100%" height="100%" frameborder="0" scrolling="no" id="Administration_frame" ></iframe>
<iframe src="http://www.xxx.com/" width="100%" height="100%" frameborder="0" scrolling="no" id="Administration_frame" ></iframe>
<iframe src="http://blog.sina.com.cn/" width="100%" height="100%" frameborder="0" scrolling="no" id="Administration_frame" ></iframe>
<iframe src="http://www.xxx.com/" width="100%" height="100%" frameborder="0" scrolling="no" id="Administration_frame" ></iframe>
http://blog.sina.com.cn/ 为例子 报以下错误
Uncaught DOMException: Blocked a frame with origin "http://localhost:24134" from accessing a cross-origin frame.
at setIframeHeight (http://localhost:24134/Administration.html:22:30)
at HTMLIFrameElement.onload (http://localhost:24134/Administration.html:37:159)