我使用localForage离线存储数据。当用setItem方法添加存储键值时,我想要生成如activity_1,activity_2,activity_3等键的值,并且这是在我提交表单时生成的。因此,对于我提交的每个表单,它都应以不同的方式生成关键值。 下面是该代码: var getActivity = document.getElementById('getActivity'),
f
我试图通过创建localForage的全局实例来localForage支持添加到pure-form Web组件: // create a global appStorage object that mimics localStorage API (greater storage)
window.appStorage = localforage.createInstance({
driv
我使用localForage将数据存储为键对象对。我正在使用下面的代码来检索我已经存储的数据。 // Find the number of items in the datastore.
localforage.length(function(length) {
// Loop over each of the items.
for (var i = 0; i < lengt