摘要: let today = new Date().getTime(); let lastDay = getTimeByDay(30) //获取30天后的日期 /* num 获取当天多少天后的日期 */ function getTimeByDay(num) { return today + 60 * 60 阅读全文
posted @ 2021-06-07 18:25 最初的样子 阅读(1902) 评论(0) 推荐(0) 编辑
摘要: 1 this.now_year = new Date().getFullYear(); 2 this.now_month = new Date().getMonth() + 1; 3 this.now_day = new Date().getDate(); 4 5 //now_time 当前日期 6 阅读全文
posted @ 2021-06-07 18:20 最初的样子 阅读(1420) 评论(0) 推荐(0) 编辑