js获取一个月有多少天

 var temp=new Date(Year,Month,1);

 Day = new Date(temp.getTime() - 864e5).getDate();

猜你喜欢

转载自blog.csdn.net/nmjuzi/article/details/80606347