Home > utils > LocalStoragePlus > set
设置本地存储。
Signature:
static set<T extends JsonValue>(key: string, value: T | ((prevValue: T | null) => T), options?: LocalStoragePlusSetOptions): void;
Parameter | Type | Description |
---|---|---|
key | string | 键 |
value | T | ((prevValue: T | null) => T) | 值 |
options | LocalStoragePlusSetOptions | (Optional) 选项 |
Returns:
void