reading-notes

201 reading notes

View the Project on GitHub iswimfree/reading-notes

local storage

if (Modernizr.localstorage) { // window.localStorage is available! } else { // no native support for HTML5 storage :( // maybe try dojox.storage or a third-party solution }

interface Storage { deleter void removeItem(in DOMString key); void clear(); };

interface Storage { readonly attribute unsigned long length; getter DOMString key(in unsigned long index); };

Back to main