HTML5 Storage

SessionStorage:

sessionStorage.setItem("key", "....");
sessionStorage.getItem("key");
sessionStorage.removeItem("key");
sessionStorage.clear();

LocalStorage:

locationStorage.setItem("key", "....");
locationStorage.getItem("key");
locationStorage.removeItem("key");
locationStorage.clear();

 

你可能感兴趣的:(HTML5 Storage)