js的date日期的坑

    科技2022-08-31  98

    通过let nowDate = new Date()获取当前时间,

    用nowDate.getMonth()获取的月份比当前真实月份小1,因为js的月份从0开始计算!

    取日时,用nowDate.getDate()

    Processed: 0.008, SQL: 10