前端操作session 配置session window.sessionStorage.setItem("key",value) window.sessionStorage.getItem('key') window.sessionStorage.clear()