Skip to content
On this page

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

ParameterTypeDescription
idstring数据的唯一标识。
dataT数据。

Returns:

void

Released under the MIT License.