Heim >Web-Frontend >js-Tutorial >Warum früher?
<script type='text/javascript'> //<![CDATA[ var uri = window.location.toString(); if (uri.indexOf("/" + new Date().getFullYear() + "/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/1/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/1/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/12/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/12/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/11/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/11/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/10/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/10/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/9/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/9/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/8/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/8/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/7/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/7/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/6/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/6/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/5/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/5/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/4/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/4/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/3/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/3/", "/"); window.history.replaceState({}, document.title, clean_uri); } if (uri.indexOf("/" + new Date().getFullYear() + "/2/", "/")) { var clean_uri = uri.replace("/" + new Date().getFullYear() + "/2/", "/"); window.history.replaceState({}, document.title, clean_uri); } //]]> </script>
Das obige ist der detaillierte Inhalt vonWarum früher?. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!