您好我正在使用IBM MobileFirst Platform Studio7.0.0.00开发应用程序。
我听说Blackberry不支持JSONStore。在Blackberry设备中存储数据的选项是什么。
由于
答案 0 :(得分:1)
LocalForage以fallBack样式存储IndexedDB,WebSQL或LocalStorage中的数据。 我喜欢这个lib,因为在移动设备中,您可以定义自定义驱动程序并将getter和setter链接到自定义SQLite数据库,使用Cordova / Phonegap或其他任何东西。
答案 1 :(得分:0)
使用HTML5 LocalStorage:http://www.w3schools.com/html/html5_webstorage.asp
例如:
// Store
localStorage.setItem("lastname", "Smith");
// Retrieve
document.getElementById("result").innerHTML = localStorage.getItem("lastname");