Js Settings cache and gets the Settings cache

  • 2020-03-30 02:53:13
  • OfStack

 
//Set the cache, get the set cache, key-value pair form, name value
localStorage.getItem("key"); //Gets the value of the key
localStorage.setItem("key", 1); //Sets the value of the key

Related articles: