【问题标题】:Why do I get IDBObserver is not defined?为什么我得到 IDBObserver 未定义?
【发布时间】:2020-08-22 20:30:58
【问题描述】:

我正在尝试在 Chrome 中使用 IndexedDB Observables。

根据the sample page,它们在 Chrome 57+ 中可用。我在 Chrome 84 上。使用链接的示例页面,我收到错误 Uncaught ReferenceError: IDBObserver is not defined (Your browser may not support this feature.) 我自己的代码也有类似的问题。

我需要做什么才能使用 IDBObserver?

【问题讨论】:

    标签: google-chrome indexeddb


    【解决方案1】:

    观察者是一项实验性功能,只能在标志后面使用,如您链接到的示例页面中所述。您是通过命令行还是 chrome://flags/ 启用标志?

    【讨论】:

    • Doh,无论我在哪里看到这个,我都错过了关于国旗的一点!
    猜你喜欢
    • 2019-10-31
    • 1970-01-01
    • 2021-12-30
    • 2021-03-24
    • 2015-03-23
    • 2012-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多