87,921
社区成员
发帖
与我相关
我的任务
分享
function thtmlbGetF4Frame(win){
if(!win) win = window;
if(typeof(win.thtmlbF4WinRefs) != "undefined" && win.thtmlbF4WinRefs != null){
return win
}
for(var i = 0; i < win.frames.length; i++){
var ret = thtmlbGetF4Frame(win.frames[i]);
if(ret) return ret;
}
return null;
}
if(typeof(win.thtmlbF4WinRefs) != "undefined" && win.thtmlbF4WinRefs != null)
这句有跨域问题,Uncaught DOMException: Blocked a frame with origin "https://xxx.com" from accessing a cross-origin frame.
只有Chrome有问题,IE可以。