js如何实现在父框架内返回置顶子框架页面在子页中加脚本检查当前URL是否就是顶层窗口对象的URL,如果一致,则说明当前页不在框架中,跳转到框架页即可.if(location.href==top.location.href)top.location.href='框架页UR2023-04-23JavaScript270