Open webyou0 opened 5 years ago
function(){ this.deleteDataByKey=function (storeName, index) { var transaction = this.db.transaction(storeName, 'readwrite'); var store = transaction.objectStore(storeName); store.delete(index); //---我的“.delete”被认为错误了 cursor.continue(); //---我的“.continue”被认为错误了 }; return this; }
我只好更正了写法如图:
是不是有些想吐血的感觉,我压缩呢,还要增加代码,请尽快更新解决哦!
function(){ this.deleteDataByKey=function (storeName, index) { var transaction = this.db.transaction(storeName, 'readwrite'); var store = transaction.objectStore(storeName); store.delete(index); //---我的“.delete”被认为错误了 cursor.continue(); //---我的“.continue”被认为错误了 }; return this; }
我只好更正了写法如图:![uv zr b18cx_tsvt r mem](https://user-images.githubusercontent.com/11604975/49512977-80a24300-f8ca-11e8-9df4-e41fdd88b28e.png)
是不是有些想吐血的感觉,我压缩呢,还要增加代码,请尽快更新解决哦!