//获取前后N个月的月份
function _getDate(params) {
var dt = new Date();
dt.setMonth(dt.getMonth() - Number(params));
let dateList = dt.toLocaleString().replace(/\//g, '-').split(" ")[0].split("-");
let month = dateList[1];
let day = dateList[2];
if (month < 10) {
dateList[1] = "0" + month
}
if (day < 10) {
dateList[2] = "0" + day
}
return dateList.join('-')
}
01-01
3455