异步跨域文件上传并获取返回值
菡萏LL 2015-06-05 10:51:00 我是用<iframe>接收<form>跨域上传成功的返回数据的,那我怎么得到<iframe>里面的内容啊
<form name="advert_uploadForm" id="advert_uploadForm" class="easyui-form" method="post" action="http://was.a002.com/upload_json.ashx" enctype="multipart/form-data" target="upload">
<table cellpadding="5">
<tr>
<td>图片:</td>
<td>
<input name="imgFile" class="easyui-filebox" style="width:150px" id="imgFile">
<input type="submit" value="上传"/>
</td>
</tr>
</table>
</form>
<iframe id="advert_iframe" name="upload" ></iframe>
用document.getElementById('advert_iframe').contentWindow.document.body.innerText; 会报错,Blocked a frame with origin "http://127.0.0.1:8020" from accessing a frame with origin "http://wap.hyt001.com". Protocols, domains, and ports must match.这个怎么处理啊,前端用的easyui框架