实例代码<p>本页面每5秒刷新一下,这是您第<mark></mark>次进入本页面!</p> <script> if (window.localStorage) { var metaRefresh = localStorage.metaRefresh || 0; document.querySelector("mark").innerHTML = ++metaRefresh; localStorage.metaRefresh = metaRefresh; } </script> ---