通过let nowDate = new Date()获取当前时间, 用nowDate.getMonth()获取的月份比当前真实月份小1,因为js的月份从0开始计算! 取日时,用nowDate.getDate()