<p></p>
<script>
let aa = setInterval(function(){cc()},1000)
function cc(){
let d = new Date()
let n = d.getFullYear()
let y = d.getMonth()+1
let r = d.getDate()
let arr = ['星期一','星期二','星期三','星期四','星期五','星期六','星期日']
let week = d.getDay()
let t = d.toLocaleTimeString()
document.querySelector('p').innerHTML =n+"年"+ y+"月"+r+"日"+' '+arr[week]+' '+ t
}
</script>
09-09
1724
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)