亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - Please tell me how to embed the page content on the server in a local HTML page in a DIV? No need for iframe.
阿神
阿神 2017-07-05 10:40:37
0
3
1001

報(bào)錯(cuò)信息如下:XMLHttpRequest cannot load http://172.31.71.33/a/mobile/... No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63343' is therefore not allowed access.

阿神
阿神

閉關(guān)修行中......

reply all(3)
ringa_lee

Needs cross-domain~~
https://blog.codefun.cn/blog/...

劉奇

The server you want to nest depends on whether you have permission.

Just turn on access-Control-Allow-Origin

Used PHP as an example

header("Access-Control-Allow-Origin: *");
學(xué)霸

Provide several ideas:
1) Back-end rendering
2) Use

<p id=showImport></p>
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<script>
oDownload.startDownload('app.htm',onDownloadDone);

function onDownloadDone(downDate)
{
 document.all.showImport.innerHTML=downDate;
}
</script>

Refer to the official website:
https://msdn.microsoft.com/en...

3) Use

<object style="border:0px" type="text/x-scriptlet" data="import.htm" width=100% height=30></object>

4)<link rel="import" href="myfile.html">
Reference: https://developer.mozilla.org...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template