我想知道是否有人想出如何“正确”检查delete()
IndexedDB 中的功能是否真的成功删除了一条记录。
我找到了这个:
// As per spec http://www.w3.org/TR/IndexedDB/#object-store-deletion-operation
// the result of the Object Store Deletion Operation algorithm is
// undefined, so it's not possible to know if some records were actually
// deleted by looking at the request result.
是否只是在删除之前保存记录键,删除记录然后检查记录是否在数据库中?