a.html页面里面 iframe 了
<iframe scrolling="auto" id='ff' name="ff" frameborder="0" src="b.html" style="width:100%;height:100%;" />var d = document;
var f = d.frames ? d.frames['ffmain'] : d.getElementById('ff');
var p = f.document || f.contentWindow.document;
p.bb();在a.html 调用 b.html 的方法 bb 怎么不起作用?
<iframe scrolling="auto" id='ff' name="ff" frameborder="0" src="b.html" style="width:100%;height:100%;" />var d = document;
var f = d.frames ? d.frames['ffmain'] : d.getElementById('ff');
var p = f.document || f.contentWindow.document;
p.bb();在a.html 调用 b.html 的方法 bb 怎么不起作用?
p.bb();
var f = d.frames ? d.frames['ff'] : d.getElementById('ff');
var p = f || f.contentWindow;
p.bb();