Domanda

How to iterate over a collection of keys stored in the localStorage using jStorage API ?

È stato utile?

Soluzione

$.jStorage.index()

Returns all the keys currently in use as an array.

var index = $.jStorage.index();
console.log(index); // ["key1","key2","key3"]
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top