vtils

Home > utils > LocalStoragePlus > set

LocalStoragePlus.set() method

设置本地存储。

Signature:

static set<T extends JsonValue>(key: string, value: T | ((prevValue: T | null) => T), options?: LocalStoragePlusSetOptions): void;

Parameters

Parameter Type Description
key string
value T | ((prevValue: T | null) => T)
options LocalStoragePlusSetOptions (Optional) 选项

Returns:

void