//退出
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">session