使用iframe嵌套页面,在点击父页面的链接时,子页面动态变化

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/songyanfei1205/article/details/81484856
使用iframe嵌套页面,在点击父页面的链接时,(1)不会刷新;(2)可以刷新。原因不详
(1)self.parent.frames["frameId"].document.location.href =  url;
(2)window.self.parent.document.getElementById("frameId").src =  url;

猜你喜欢

转载自blog.csdn.net/songyanfei1205/article/details/81484856