浏览器端的缓存,如果不主动清除则永远存在localStorage.setItem(“city”,”武汉”); 浏览器端的缓存,如果不主动清除则永远存在 localStorage.setItem(“city”,”武汉”);<body> <p>hello world</p> <script> localStorage.setItem("city","武汉"); </script></body>