嗨,我想加上12个月,并减去当前日期的1天。
例子 :
valStartDate:2018-01-20
预期日期:2019-01-19
我尝试下面的代码,但出现错误“ getFullYear()不允许使用的函数”
this.endDate =this.valStartDate.getFullYear()+1+'-'+this.valStartDate.getMonth()+'-'+(this.valStartDate.getDate()-1);
慕容森
幕布斯7119047
守候你守候我
随时随地看视频慕课网APP
相关分类