我想将外部 html 页面加载/插入到我的网页中。例子 :
<b>Hello this is my webpage</b>
You can see here an interresting information :
XXXX
Hope you enjoyed
的XXXX应该由一个小的脚本(尽可能小,因为),该负载像页替换http://www.mySite.com/myPageToInsert.html
我用 jquery 找到了以下代码:
<script>$("#testLoad").load("http://www.mySite.com/myPageToInsert.html");</script>
<div id="testLoad"></div>
我希望不使用外部 javascript 库作为 jquery ......