.getElementById("ericond").style.display = "none" } //倒计时 var date1 = '2023/5/16 09:00:00'; function showtime(date) { var nowtime = new Date(), endtime = new Date(date), lefttime = endtime.getTime() - nowtime.getTime(), leftd = String(Math.floor(lefttime / (1000 * 60 * 60 * 24))); if (leftd < 0) { leftd = String(0); } var array = leftd.split(''), txt = ''; for (x in array) { txt += '' + array[x] + ''; } return txt; }; setInterval(function () { $(".count-down dt").html(showtime(date1)); }, 1000); $(".middle_box").click(function (e) { $(".highlights").slideToggle(); }); if ($(".highlights .list ul").eq(0).find("li").length == 0) { $(".highlights .list ul").eq(1).show().siblings().hide(); }