js页面--年份自动增加

<script>if (new Date().getFullYear() > 2017) {
    document.write("-" + new Date().getFullYear());
}</script>
// 大于2017年自动加上 - 年份  

 

posted @ 2017-11-07 14:38  随行-LV  阅读(662)  评论(0编辑  收藏  举报