Open dlrandy opened 6 years ago
storage 的事件只监听不同页面的items changes https://medium.com/@ramsunvtech/onfocus-html5-storage-apis-b45d92aa424b https://www.html5rocks.com/en/tutorials/offline/quota-research/ https://scotch.io/@PratyushB/local-storage-vs-session-storage-vs-cookie https://www.quora.com/What-is-the-difference-between-sessionstorage-localstorage-and-Cookies
localStorage 是往harddisk上写数据; sessionStorage 是写在cache
safari一般是5M mobile android browser2M;其他一般都是10M及以上 反正处于最大兼容默认5M就行了
session https://stackoverflow.com/questions/1740860/http-session-tracking http://www.lassosoft.com/Tutorial-Understanding-Cookies-and-Sessions https://machinesaredigging.com/2013/10/29/how-does-a-web-session-work/ https://stackoverflow.com/questions/531393/how-to-detect-server-side-whether-cookies-are-disabled
methods: postMessage(across origin) websocket poll sharedworker localstorage cookie session indexdb
https://stackoverflow.com/questions/19125823/how-is-it-possible-to-share-single-js-resource-between-browser-tabs/19165781#19165781