老是说我else的地方语法错误,我到底错哪儿了?function monthdaycount(year,month){IF (month=2){IF ((year/400==Math.floor(year/400)) || (year/4==Math.floor(year/4) && (year/100!=Math.floor(year/100)))){ return 29; }else{ return 28; }}else
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 22:15:09
老是说我else的地方语法错误,我到底错哪儿了?function monthdaycount(year,month){IF (month=2){IF ((year/400==Math.floor(year/400)) || (year/4==Math.floor(year/4) && (year/100!=Math.floor(year/100)))){ return 29; }else{ return 28; }}else
老是说我else的地方语法错误,我到底错哪儿了?
function monthdaycount(year,month)
{
IF (month=2)
{
IF ((year/400==Math.floor(year/400)) || (year/4==Math.floor(year/4) && (year/100!=Math.floor(year/100))))
{ return 29; }
else
{ return 28; }
}
else
[
IF (month==4 || month==6 || month==9 || month==11) then
{ return 30; }
else
{ return 31; }
}
}
老是说我else的地方语法错误,我到底错哪儿了?function monthdaycount(year,month){IF (month=2){IF ((year/400==Math.floor(year/400)) || (year/4==Math.floor(year/4) && (year/100!=Math.floor(year/100)))){ return 29; }else{ return 28; }}else
else
[
IF (month==4 || month==6 || month==9 || month==11) then
{ return 30; }else
{//错误的地方
IF (month==4 || month==6 || month==9 || month==11) then
{ return 30; }