//比较当前时间和跟进日期,如果大于,返回true,如果小于,返回false //follDate 是 字符串类型 yyyy-MM-dd //mytoday 是Date类型 function dateCom (follDate, mytoday) { var arr = follDate.split('-'); var month = parseInt(arr[1]) - 1; var begin = new Date(arr[0], month, arr[2]); var begins = begin.getTime(); var todays = mytoday.getTime(); if (todays >= begins) { return true; } else { return false; } }