getWeek(time) { let weekDay = ["周日","周一", "周二", "周三", "周四", "周五", "周六"]; let myDate = new Date(Date.parse(time)); return weekDay[myDate.getDay()] }, console.log(getWeek('2019-09-11') // 周三
function GetDateStr(AddDayCount, date, type) { var dd = new Date(date); dd.setDate(dd.getDate()+AddDayCount); var y = dd.getFullYear(); var m = (dd.getMonth()+1)<10?"0"+(dd.getMonth()+1):(dd.getMonth()+1); var d = dd.getDate()<10?"0"+dd.getDate():dd.getDate(); if(type){ if(date === this.oldTime) { return '今天' } else { return d } } else { return y + "-" + m + "-" + d; } } GetDateStr(-14, '2019-09-12') // 2019-08-29 GetDateStr(14, '2019-09-12') // 2019-09-26
pickerOptionsStart: { disabledDate (time) { return time.getTime() < new Date(new Date().toLocaleDateString()).getTime(); } }
售后响应及时
7×24小时客服热线数据备份
更安全、更高效、更稳定价格公道精准
项目经理精准报价不弄虚作假合作无风险
重合同讲信誉,无效全额退款