我正在尝试在我的网站上设置搜索功能,我正在尝试查找 IndexedDB 代码
SELECT "column" FROM "table" WHERE "column" LIKE "%keyword%"
db.transaction(['table'], 'readonly')
.objectStore('table')
.openCursor(IDBKeyRange.bound(keyword, keyword + '\uffff'), 'prev')
.onsuccess = function (e) {
e || (e = event);
var cursor = e.target.result;
if (cursor) {
console.log(cursor.value.column);
cursor.continue();
}
};
但我怎样才能找到“%keyword%”而不是“%keyword”?