localStorage常用方法:
localStorage.setItem(key,value);//存储key值为value
localStorage.getItem(key)//获取key值
localStoage.key(i)//获取第i个key值
localStorage.removeItem(key)//删除key值对应的value
localStorage.clear()//清空localStorage所有的值
/*sessionStorage用法API相同*/
退出登录时删除掉