IBDCursor IntelXDK 停止

IBDCursor IntelXDK stop

我正在实施一个调用列表,其中 LOAD 需要火焰已经制作完成,需要列表并放置复选框标记问题不存在。但是不给。

我使用游标的想法,EO Bank Used 和 IndexedDB 数据,我做了一个 Search All Students”,代码“student”等于 Table Presence 中的“student”代码时,问题发生在这里! HE DOES NOT When paragraph are a Correct ANSWER ,他继续测试每个人。

下面的代码:

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 and about the different IDBKeyRanges here

上找到更多信息