Skip to content

iosecret/storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storage

对本地 localStorage/sessionStorage 的操作

Usage

import { getLocal, setLocal, removeLocal, getSession, setSession, removeLocal } from '@iosecret/storage';

// localStorage 操作
setLocal(key, value);
getLocal(key);
removeLocal(key);

// sessionStorage 操作
setSession(key, value);
getSession(key);
removeSession(key);

About

前端本地 storage 处理

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published