localStorage 是以 字符串的形式存储的
所以说 setItem 的时候 尽管 保存的值是对象或者Boolean等
getItem 获取值的时候都是 以字符串形式 返回
本地存储localstorage 的坑
猜你喜欢
转载自blog.csdn.net/weixin_44786330/article/details/129366245
今日推荐
周排行