0
我使用函數從另一頁面加載內容。我的頁面是http://example.org/mypage.html
和包含此jQuery的:從元素中獲取內容(URL)並將其放入jQuery代碼中
$(".content").load("http://example.org/12333.html .data");
如何我可以從另一個頁面獲得此URL http://example.org/12333.html
動態:http://example.org/static.html
我的jQuery代碼?
我static.html樣子:
<div class="link">
<a href="http://example.org/12333.html">Link</a>
</div>
我想你可以在'static.html鏈接'上運行'.load'並''用'href'找到第一個'a' – tymeJV