最新代码

This commit is contained in:
yiqiuyang
2025-09-10 01:35:04 +08:00
parent 80f9714845
commit fa0221032c
10 changed files with 890 additions and 52 deletions

View File

@ -1,6 +1,9 @@
function setStorage(item, value) {
return localStorage.setItem(item, JSON.stringify(value));
return window.localStorage.setItem(item, JSON.stringify(value))
}
function getStorage(item) {
return JSON.parse(localStorage.getItem(item));
return JSON.parse(window.localStorage.getItem(item))
}
export {setStorage, getStorage}