版权动态日记页脚 JS

关键代码如下

<script>document.write(new Date().getFullYear())</script>

js方法

new Date() //实例化Date对象
getFullYear()//获取年份

  

原文地址:https://www.cnblogs.com/max-hou/p/10986605.html