自动播放当前时间







function time1() {
var date = new Date();
document.getElementsByClassName("d1")[0].innerHTML = date.toLocaleString();
document.getElementsByClassName('d1')[1].innerHTML = date.toLocaleString();
}
//time();
window.setInterval(time1, 1000);
function time2() {
var date = new Date();
document.getElementsByClassName("d2")[0].innerHTML = date.toLocaleString();
document.getElementsByClassName('d2')[1].innerHTML = date.toLocaleString();
console.log(date)
}
//time();
window.setInterval(time2, 1000);
var swiper1 = new Swiper('.swiper1',{
loop:true,
autoplay:6000
})
【自动播放当前时间】// console.log(data);

    推荐阅读