1.a.html:
window.cb = function(){
window.location.assign("http://www.baidu.com");
}
2.iframe(b.html)
typeof(window.parent.cb) == "function" && window.parent.cb();
1.a.html:
window.cb = function(){
window.location.assign("http://www.baidu.com");
}
2.iframe(b.html)
typeof(window.parent.cb) == "function" && window.parent.cb();
转载于:https://www.cnblogs.com/fss226/p/5650776.html