const currentTime = new Date().getTime() // 当前时间戳 const currentZero = new Date().setHours(0, 0, 0) // 当天零时时间戳 const currentMonthFirstDayZero = new Date(new Date().setDate(1)).setHours(0, 0, 0) // 当月第一天时间戳 const currentYearFirstDayZero = new Date(new Date(new Date().getFullYear(), 0, 1)).setHours(0, 0, 0) // 当前年零时时间戳
标签:const,零时,js,当前,Date,new,setHours From: https://www.cnblogs.com/jinGang66/p/17516711.html