添加页脚
在<footer></footer>中添加,如下:
1 <footer> 2 <!--©是@的转义符,网站https://dev.w3.org/html5/html-author/charref 3 2014-<script>document.write((new Date())</script> 时间,2014是固定的年份, 4 <script>document.write((new Date())</script>获取现在年份 5 Date知识网站:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date --> 6 <p style="text-align:center;">Copyright © 2014-<script>document.write((new Date())</script> </p> 7 </footer>