<script>if (new Date().getFullYear() > 2017) { document.write("-" + new Date().getFullYear()); }</script> // 大于2017年自动加上 - 年份
<script>if (new Date().getFullYear() > 2017) { document.write("-" + new Date().getFullYear()); }</script> // 大于2017年自动加上 - 年份
转载于:https://www.cnblogs.com/Liang-Haishan216/p/7798904.html