StorageEventApi

类型别名: StorageEventApi

ts
type StorageEventApi = object;
type StorageEventApi = object;

定义在: packages/db/src/local-storage.ts:28

Storage 事件 API - Window 的一个子集,仅用于 'storage' 事件

类型声明

addEventListener()

ts
addEventListener: (type, listener) => void;
addEventListener: (type, listener) => void;

参数

类型

"storage"

listener

(event) => void

Returns (返回)

void

removeEventListener()

ts
removeEventListener: (type, listener) => void;
removeEventListener: (type, listener) => void;

参数

类型

"storage"

listener

(event) => void

Returns (返回)

void

我们的合作伙伴
Code Rabbit
Electric
Prisma
订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。

订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。