var obj = document.getElementById('frameName').contentWindow;
obj.functionName();
通过:contentWindow
本文介绍了一种通过 contentWindow 属性访问 iframe 内部页面的方法,并演示了如何调用其内部 JavaScript 函数。
var obj = document.getElementById('frameName').contentWindow;
obj.functionName();
通过:contentWindow

被折叠的 条评论
为什么被折叠?