<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head>
<card title="Uncaught SecurityError: Failed to read a named property 'href' from 'Location': Blocked a frame with origin "http://localhost:9529" from accessing a cross-origin frame." id="card1">
<p> 游客</p><p>
标题:Uncaught SecurityError: Failed to read a named property 'href' from 'Location': Blocked a frame with origin &quot;http://localhost:9529&quot; from accessing a cross-origin frame.<br/>
正文:<br/>
 Uncaught SecurityError: Failed to read a named property 'href' from 'Location': Blocked a frame with origin &amp;quot;http://localhost:9529&amp;quot; from accessing a cross-origin frame.    at ./src/main.js (main.js:127:23)    at __webpack_require__ ((索引):99:30)    at 0 (templateLabelConfig.vue:1:1)    at __webpack_require__ ((索引):99:30)    at checkDeferredModules ((索引):65:23)    at Array.webpackJsonpCallback [as push] ((索引):52:19)    at app.1736758244600.js:1:57解决方案：//主页面 向 iframe传递事件//主页面var frame = document.getElementById('iframeId');frame.contentWindow.postMessage(object,'*');//iframe页面iframe: window.addEventListener('message',function(event){    //此处执行事件})//iframe向主页面传递事件//iframe页面window.parent.postMessage(object,'*');//主页面window.addEventListener('message',,function(event){         //此处执行事件})<br/><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=2297&amp;Page=1">[&lt;&lt;]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=2297&amp;Page=1">[[1]]</a><a href="http://camnpr.com/wap.asp?mode=WAP&amp;act=View&amp;id=2297&amp;Page=1">[&gt;&gt;]</a><br/>
<br/>
<a href="wap.asp?act=Com&amp;id=2297">查看评论(0)</a><br/>
<a href="wap.asp?act=AddCom&amp;inpId=2297">发表评论</a><br/><br/>

<br/>

<br/>
<a href="http://camnpr.com/wap.asp">首页</a>
</p>
</card>
</wml>