//退出
function logout(){
//aceClear();//清理浏览器 临时信息,去掉,它会重启请求获取菜单然后缓存的,不太好的
window.sessionStorage.clear();// 清除session 缓存
var url = _ctxPath + “/system/user/logout.do”;
window.location.href = url;
}
同时 设置不缓存
<!– 不缓存 –>
<meta http-equiv=”Expires” content=”Thu, 01 Jan 1970 00:00:01 GMT”>
<meta http-equiv=”Pragma” content=”no-cache”>
<meta http-equiv=”Cache-control” content=”no-cache, no-store, must-revalidate”>
<meta http-equiv=”Cache” content=”no-cache”>
转载于:https://my.oschina.net/ouminzy/blog/822860