function getDaysInmonth(year、month){month = parseint(month、10); // parseint(number、type)2番目のパラメーターがバイナリを表すために使用されない場合、デフォルトは小数です。 var temp = new Date(年、月、0); return temp.getDate(); }