session過時,登陸頁被內嵌iframe的解決方案

在登陸頁的js加上:spa

1 if(window !=top){  
2     top.location.href = location.href;  
3 }  

就能夠完美解決這個問題!code

相關文章
相關標籤/搜索