浏览器相关概念
cookie sessionStorage localStorage
共同点
区别
实现一个会到期的 localStorage
localStorage 跨域
otherWindow.postMessage(message, targetOrigin, [transfer]);
localStorage 的限制
Cookie
应用
获取 cookie
token 能放在 cookie 里吗?

浏览器输入 URL 发生的事情
浏览器渲染页面过程

避免 Reflow, Repaint
引发 Reflow 的操作
优化
let 声明的全局变量存储在哪
垃圾回收
标记清除
引用计数
GC 优化策略
Last updated