标签:
// 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; }
标签:
原文地址:http://www.cnblogs.com/zno2/p/5109352.html