Operations with Date object js

前端 未结 0 1204
轮回少年
轮回少年 2020-11-21 21:52

How can I do mathematical operations with Date using just vanilla JS ?

something like : today + 2 days

const today = new Date();
const DayToAdd = 2;


         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题