|
[其他]
iframe中的页面无法使用 api.方法
[复制链接]
iframe中的页面无法使用 api.方法
父页面代码
<iframe id="H-frame-user" src="../user/user.html" style="width:100%;display:none" class="frame" frameborder="0" scrolling="yes"></iframe>
user.html代码
apiready = function(){
//这里的所有api.XX方法都无法使用
//api.openWin 等等
}
在父页面用 api.openFrame 打开的页面是可以的, 这个我知道,但我特殊情况想要使用iframe, 请问有解决办法没?
|
|