在iframe子頁面獲取父頁面元素
代碼如下:
復制代碼 代碼如下:
$.('#objld', parent.document);
復制代碼 代碼如下:
$("#objid", document.iframes('iframe').document)
復制代碼 代碼如下:
$(document.getElementById('iframeId').contentWindow.document.body).html() $(document.getElementById('iframeId').contentWindow.document.body).html()
復制代碼 代碼如下:
$("#testId", document.frames("iframename").document).html()
新聞熱點
疑難解答
圖片精選