Web API之sessionStorage、localStorage、globalStorage
1.介绍a)sessionStorage和localStorage都是window的属性,也是Storage对象的实例,即:window.sessionStorageinstanceofStorage返回True,window.localStorageinstanceofStorage返回True,也因此两者享有Storage的属性和方法。b)sessoinStorage存储的数据在页面会话结束时