<div class="swiper-container swiper1">
<div class="swiper-wrapper">
<div class="d1 swiper-slide"></div>
<div class="d1 swiper-slide"></div>
</div>
</div>
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);