1 function getNum(year, month) { 2 var temp; 3 month = parseInt(month, 10); 4 temp = new Date(year, month, 0); 5 return temp.getDate(); 6 };
1 function getNum(year, month) { 2 var temp; 3 month = parseInt(month, 10); 4 temp = new Date(year, month, 0); 5 return temp.getDate(); 6 };