js获取当天日期(YYYY-MM-DD)
let y = new Date().getFullYear() + '-' let m = (new Date().getMonth() + 1 < 10) ? '0' + (new Date().getMonth() + 1) + '-' : (new Date().getMonth() + 1) + '-' let d = (new Date().getDate() < 10) ? '0' + new Date().getDate() : new Date().getDate() let currentDate = y + m + d

浙公网安备 33010602011771号