计算N天前的日期 /**功能:计算N天前的日期@params days:天数@return N天前的日期,"yyyy-MM-dd" 格式**/function calDate(days) { var now = new Date(); if (days >= 1) { now = new Date(now.getTime() - 86400000 * days); //以毫秒计,1000m web 2023-11-24 63 点赞 0 评论 95 浏览