setInterval(function(){
var now = new Date();
var hour = now.getHours();
var min = now.getMinutes();
var sec = now.getSeconds();
var n1 = parseInt(hour/10);
var n2 = hour%10;
var n3 = parseInt(min/10);
var n4 = min%10;
var n5 = parseInt(sec/10);
var n6 = sec%10;
var imgs = document.getElementsByTagName("img");
imgs[0].src = "img/"+n1+".png";
imgs[1].src = "img/"+n2+".png";
imgs[2].src = "img/"+n3+".png";
imgs[3].src = "img/"+n4+".png";
imgs[4].src = "img/"+n5+".png";
imgs[5].src = "img/"+n6+".png";
//console.log(n1,n2,n3,n4,n5,n6);
}, 1000);
️我还很喜欢你、就像sin²x+cos²x始终如一