// yyyy-MM-dd function bigThanToday(someDate){ var date = new Date(); var dateStr = date.getFullYear()+"-"+fillZero(date.getMonth()+1)+"-"+fillZero(date.getDate()); return someDate > dateStr; } function fillZero(num){ if(num.toString().length == 1){ num = "0" + num; } return num; }
时间: 2024-10-09 06:42:34