身思乐,人事爱,稳恒不言败!

js date当天零点毫秒

function nowZeroPoint(){ //当天零点毫秒
    var date = new Date()
    var year = date.getFullYear(), month = date.getMonth() + 1, day = date.getDate();
    var dateStr = [year, month, day].join('-');
    var a = new Date(dateStr);
    return a.getTime();
}