代码 显示系统当前年份:script>document.write(new Date().getFullYear())</script> <footer class="border-top footer text-muted"> <div class="container"> © 2022-<script>document.write(new Date().getFullYear())</script> - top.libeilin.orange - <a asp-area="" asp-page="/Privacy">Privacy</a> </div> </footer> 效果