idb-js
idb-js copied to clipboard
删除怎么没有error 回调函数啊?
/**
- @method 删除数据
- @param {Object}
- @property {String} tableName 表名
- @property {Function} condition 查询的条件,遍历,与filter类似
-
@arg {Object} 每个元素
-
@return 条件
- @property {Function} [success] 删除成功的回调 @return {Array} 返回被删除的值
- @property {Function} [error] 错误函数 @return {String}
- */ delete({ tableName, condition, success = () => {} }) {