This commit is contained in:
zhuoda
2022-11-05 22:40:22 +08:00
parent 1f75c9614e
commit f9cc5accde
1807 changed files with 127943 additions and 78167 deletions

View File

@@ -0,0 +1,20 @@
/*
* localStorage 相关操作
*
* @Author: 1024创新实验室-主任:卓大
* @Date: 2022-09-06 20:58:49
* @Wechat: zhuda1024
* @Email: lab1024@163.com
* @Copyright 1024创新实验室 https://1024lab.net Since 2012
*/
export const localSave = (key, value) => {
localStorage.setItem(key, value);
};
export const localRead = (key) => {
return localStorage.getItem(key) || '';
};
export const localClear = () => {
localStorage.clear();
};