var nowDate = new Date();
nowDate.setMonth(nowDate.getMonth() + 1);
let lastDay = nowDate.setDate(0);
console.log('最后一天:' + new Date(lastDay).toLocaleString());
var nowDate = new Date();
nowDate.setMonth(nowDate.getMonth() + 1);
let lastDay = nowDate.setDate(0);
console.log('最后一天:' + new Date(lastDay).toLocaleString());