记录一个有用的代码

纯静态html页面下,可以使用这个代码自动获取年份<span id="current-year"></span> <script> // 自动获取当前年份并填充 document.getElementById('cu...