Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Chrome 中停用 IndexedDB 进行测试。
有什么办法吗?
或者我应该覆盖默认的 IndexedDB 变量,所以我的脚本认为没有 IndexedDB?
我不知道您为什么要实现这一目标,但请尝试以下操作:
(function(window, undefined){ window.indexedDB = undefined; })(window);