主要有sessionStorage和localStorage,localStorage 的基本方法:
定义:localStorage.setItem('key','value')
获取:localStorage.getItem('key')
删除:localStorage.removeItem('key')
清空:localStorage.clear()