Вопрос

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

Это было полезно?

Решение

$.jStorage.index()

Returns all the keys currently in use as an array.

var index = $.jStorage.index();
console.log(index); // ["key1","key2","key3"]
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top