我想將外部html頁面加載/插入到我的網頁中。例如:將外部頁面html插入頁面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 ...
優秀的,這是一個... thx – Zitun 2011-02-11 10:13:07