session过期后跳转到登录页时跳出iframe框架

$(function(){
    if (window != top) {
        top.location.href = location.href;
    }
});
原文地址:https://www.cnblogs.com/markLogZhu/p/12893300.html