js获取当前日期的前后4天两种 一种返回Date对象,一种返回字符串。function addDate(ds){var d=new Date()d.setDate(d.getDate()+ds)return d}function addDays(2023-04-08JavaScript170