目录

<li>本站已经勉强运行<a id="days"></a>天</li>
<script>
var birthDay = new Date("10/10/2014"); // 这里填写网站第一次运行日期
var now = new Date();
var duration = now.getTime() - birthDay.getTime();
var total= Math.floor(duration / (1000 * 60 * 60 * 24));
document.getElementById("days").innerHTML = total;
</script>