iking-utils-test
Version:
金合前端工具库(1.2.9版本之后需要注册KEY)
18 lines (17 loc) • 427 B
TypeScript
/**
* @description:
* @param {
* name: 存/取字段名
* value: 值
* time:过期时间,单位:秒
* }
* @return {*}
*/
export declare const localStore: {
has: (key: string) => boolean;
setItem: (name: string, value: any, time?: number) => void;
getItem: (name: string) => any;
removeItem: (name: string) => void;
clear: (name: string) => void;
size: () => number;
};