1, the stored data: localStorage.setItem ( "attribute", "attribute value")
2, obtaining the value stored locally: localStorage.getItem ( "attribute")
3, to delete the specified key: localStorage.removeItem ( "attribute")
4, All data is stored locally clear website: localStorage.clear ()
How to use offline storage (localStorage)?
Guess you like
Origin www.cnblogs.com/wuqilang/p/11204663.html
Recommended
Ranking