js代码,实现按月份和天数的天数。

功能getdaysinmonth(年、月){
月= parseInt(月10); / / parseInt(数量、类型)后的功能不受二参数表示,默认是10。
新日期(年,月,0);
返回temp.getdate();
}