js如何獲取上個月第一天和最後一天

var nowdays = new Date(); var year = nowdays.getFullYear(); var month = nowdays.getMonth(); if(month==0){ month = 12; year = year-1;
相關文章
相關標籤/搜索