批改状态:未批改
老师批语:
function run($year){
if(($year%4==0) && ($year%100 != 0)){
alert('是闰年');
}else{
alert('不是闰年');
}
}
//alert();
run(2004);点击 "运行实例" 按钮查看在线实例
function grade($score){
if($score>=90 && $score<=100){
alert('优秀');
}else if($score>=80 && $score<=89){
alert('良好');
}else if($score>=70 && $score<=79){
alert('良');
}else if($score>=60 && $score<=69){
alert('及格');
}else if($score>=0 && $score<=59){
alert('不及格');
}else{
alert('没考试');
}
}
grade(65);点击 "运行实例" 按钮查看在线实例
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号