iframe框架中用js改变父级Url
<script type="text/javascript">
var path = window.location.href;//当前也面的跳转
var topPath = top.window.location.href;//最外层也面的跳转
if (path != topPath)
{
top.window.location.href = window.location.href;
}
</script>
本文来自博客园,作者:方金,转载请注明原文链接:https://www.cnblogs.com/Gold-fangjin/p/5546039.html