4 回答

TA貢獻(xiàn)1830條經(jīng)驗(yàn) 獲得超3個(gè)贊
targetFunction()
:
document.getElementById('targetFrame').contentWindow.targetFunction();
window.frames
document.getElementById
.
// this option does not work in most of latest versions of chrome and Firefoxwindow.frames[0].frameElement.contentWindow.targetFunction();

TA貢獻(xiàn)1820條經(jīng)驗(yàn) 獲得超9個(gè)贊
iframe
iframe
http://
https://
.
父頁(yè)面和iframe頁(yè)面來(lái)自不同的域。 他們使用不同的協(xié)議,一種是在http:/上,另一種是在https://.上
iframe
添加回答
舉報(bào)