-6
此代码用于倒计时即将推出的页面。我怎样才能以简短的方式或正确的方式编写这段代码?什么是使用此代码的正确方法?
$(document).ready(function() {
else if(month == 2){
var currentMo = 2564;
}else if(month == 3){
var currentMo = 452136;
}else if(month == 4){
var currentMo = 86985;
}else if(month == 5){
var currentMo = 1236;
}else if(month == 6){
var currentMo = 12365;
}else if(month == 7){
var currentMo = 12546;
}
});
哪里如果阻止? – guradio
为什么不使用epoch/timestamp作为结束日期,检查当前时间戳并使用setTimeout函数更新它? – 25r43q
没有最初的,如果没有这些数字的含义的线索,有很多缺少的代码,没有迹象表明如何计算月份。人们应该如何回答? – Cranio