Open Shenglian opened 5 years ago
localStorage - length - key - getItem - setItem - removeItem - clear for (let i = 0, len = localStorage.length; i < len; i++) { console.log( `${localStorage.key(i)} => ${localStorage.getItem(localStorage.key(i))}` ) }