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