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