我想要在我的网页中加载/插入一个外部的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>
我希望能够不使用jQuery这样的外部JavaScript库来实现相同的功能...