Frage

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

War es hilfreich?

Lösung

$.jStorage.index()

Returns all the keys currently in use as an array.

var index = $.jStorage.index();
console.log(index); // ["key1","key2","key3"]
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top