Open zxdfe opened 1 year ago
localStorage 生命周期: 除非手动删除, 否则永久存在 数据共享: 可以在同域名下实现数据的共享
sessionStorage 生命周期: 页面关闭, 数据即丢失 数据共享: 存储的数据只能在当前页面使用
localStorage 生命周期: 除非手动删除, 否则永久存在 数据共享: 可以在同域名下实现数据的共享
sessionStorage 生命周期: 页面关闭, 数据即丢失 数据共享: 存储的数据只能在当前页面使用