localStorageの内容を全部出力する
function showAllStorage() { var values = [], keys = Object.keys(localStorage), i = keys.length; while ( i-- ) { console.log( keys[i] + ': ' + localStorage.getItem(keys[i]) ); } }
まんま参考にしただけですが
めも
function showAllStorage() { var values = [], keys = Object.keys(localStorage), i = keys.length; while ( i-- ) { console.log( keys[i] + ': ' + localStorage.getItem(keys[i]) ); } }
まんま参考にしただけですが
めも