在login页面中加入以下代码
$("document").ready(function(){
//防止在frame里面出现登录页面
if(top.location!==self.location){
//alert(top.location);
//alert(self.location);
top.location.href=self.location.href;
}
});
可以实现在需要用户重新登录时,页面跳转到login上,而不是在frame中嵌套login页面