Home > @taiyuuki/utils > DB > set_item
DB.set_item() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
将对象存储中的数据写入 IndexedDB 数据库。
Signature:
typescript
set_item(id: string, data: T): void;
set_item(id: string, data: T): void;
Parameters
Parameter | Type | Description |
---|---|---|
id | string | 数据的唯一标识。 |
data | T | 数据。 |
Returns:
void