gpt4 book ai didi

javascript - IBDCursor IntelXDK 停止

转载 作者:行者123 更新时间:2023-12-03 08:30:12 25 4
gpt4 key购买 nike

我正在实现一个调用列表,其中加载需要火焰已经制作了需要列表并放置复选框标记队列不存在。但不给予。

我使用游标的思路,使用EO Bank和IndexedDB数据,我做了一个Search All Students”,将代码“student”等于表中存在“student”代码时,问题就发生在这里!当段落是正确答案时,他不会继续测试每个人。

下面的代码:

db.transaction ("tbl_PESSOAS"). ObjectStore ("tbl_PESSOAS"). get (cursor.value.COD_IDENT_PESSO) .onsuccess = function (event) {


$ wrapper = document.querySelector ('# check_presenca');

HTMLTemporario = $ wrapper.innerHTML;
= event.target.result person;

if (pessoa.FLG_IDENT_PESSO == "A" && cursor.value.FLG_IDENT_PESSO == "M") {
var w_codigo_reuniao = sessionStorage.getItem ("w_codigo_reuniao");
w_aux var = 01;
var bd = db.transaction ("tbl_PRESENCA"). ObjectStore ("tbl_PRESENCA")
index = bd.index ("COD_IDENT_REUNI");
index.openCursor (w_codigo_reuniao) .onsuccess = function (event) {
var = vector event.target.result;
if (vector) {

if (pessoa.COD_IDENT_PESSO == vetor.value.COD_IDENT_PESSO) {

HTMLNovo = '<li class = "item-item checkbox uib_w_69 widget" data-UIB = "ionic / checkbox" data-view = "0"> <label class = "checkbox"> <input class = "check" type = " checkbox "name =" '+ pessoa.COD_IDENT_PESSO +' "checked> <input id =" codigoPessoaPresente "value =" '+ pessoa.COD_IDENT_PESSO +' "type =" hidden "> </ label> '+ pessoa.TXT_NOMEX_PESSO +' </ li> ';

HTMLNovo = HTMLNovo + HTMLTemporario;

$ wrapper.innerHTML = HTMLNovo;
} else {
HTMLNovo = '<li class = "item-item checkbox uib_w_69 widget" data-UIB = "ionic / checkbox" data-view = "0"> <label class = "checkbox"> <input class = "check" type = " checkbox "name =" '+ pessoa.COD_IDENT_PESSO +' "> <input id =" codigoPessoaPresente "value =" '+ pessoa.COD_IDENT_PESSO +' "type =" hidden "> </ label> '+ pessoa.TXT_NOMEX_PESSO +' </ li > ';

HTMLNovo = HTMLNovo + HTMLTemporario;

$ wrapper.innerHTML = HTMLNovo;

vetor.continue ();
}
}
};
}
};

最佳答案

如果您想过滤数据,则需要提供键范围。

store.openCursor(IDBKeyRange.lowerBound(0))

您可以通过 here 找到更多信息以及关于不同的 IDBKeyRanges here

关于javascript - IBDCursor IntelXDK 停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33368467/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com