function get_cache_size(t){
t = t == undefined ? "l" : t;
var obj = "";
if(t==='l'){
if(!window.localStorage) {
console.log('浏览器不支持localStorage');
}else{
obj = window.localStorage;
}
}else{
if(!window.sessionStorage)
获取localStorage和sessionStorage当前已存储大小
最新推荐文章于 2022-06-02 16:35:39 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)