您的位置: 首页 > IT文章 > js 取该月的天数 js 取该月的天数 分类: IT文章 • 2023-11-05 16:28:44 function getDaysInMonth(year, month) { var temp = new Date(year, month, 0); return temp.getDate(); }