1.父級頁面獲取iframe頁面中的元素對象(關(guān)鍵contentWindow):
document.getElementById(iframe的id).contentWindow.document.getElementById(iframe頁面元素id)
2.iframe頁面獲取父級頁面的元素對象(關(guān)鍵window.parent):
window.parent.document.getElementById(父級頁面的元素id)
3.如果是跳過文件的方式開發(fā),會出現(xiàn)跨域問題
nginx解決跨域