繁体   English   中英

IS IBM MobileFirst Platform 7.0.0.00 支持 indexedDB

[英]IS IBM MobileFirst Platform 7.0.0.00 supports indexedDB

我正在尝试在我的移动应用程序中实现 indexedDB。这里我给出了我的代码

function readAll() {
    var objectStore = db.transaction("customers").objectStore("customers");

    objectStore.openCursor().onsuccess = function(event) {
      var cursor = event.target.result;
      if (cursor) {
            alert("Name for id " + cursor.key + " is " + cursor.value.name + ", Age: " + cursor.value.age + ", Email: " + cursor.value.email);
            cursor.continue();
      }
      else {
            alert("No more entries!");
      }
    };     
}

在这个 cursor.continue(); 在我的 js 文件中显示为红线。我不知道为什么

请任何人帮助。我从

http://www.onlywebpro.com/2012/12/23/html5-storage-indexeddb/

谢谢

MobileFirst 不提供 IndexedDB 支持,因为这不是它可以提供的功能。

MobileFirst 在其基础上使用 Cordova。 如果 Cordova 支持 IndexedDB,您的应用程序将能够使用它。

根据Cordova 文档,IndexedDB 支持:

  • 黑莓 10
  • 火狐操作系统
  • 视窗电话 8
  • 视窗 8

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM