js月份加减方法调用Date对象setDate()函数,具体方法如下:function addDate(date,days){var d=new Date(date)d.setDate(d.getDate()+days)var month=d.getMon2023-03-02JavaScript170