js判断当前页面是否有父页面,页面部分跳转解决办法,子页面跳转父页面不跳转解决 (原)
//如果当前页面存在父页面,则当前页面的父页面重新加载(即子页面父页面连带跳转)
if(top.location!=self.location){
window.parent.location.reload()
}
//如果当前页面存在父页面,则当前页面的父页面重新加载(即子页面父页面连带跳转)
if(top.location!=self.location){
window.parent.location.reload()
}