亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

JavaScript? if ??? ???

?? ???:

??? ??? ?? ??? ?????, ?? ??? ?????


?? 1: ?(true)? ???? ??? ???? ???? ?? ??

if(??? ??: ?? ??? ??? ?)

{

??? ?(true)?? ???? ??

}


?? 2: ?? ??? ?? ??

if(??? ??)

{

??? ?? ?? ???? ??

}else

{

??? false?? ??? ?????.

}


?? 3: ?? ?? ??

if(?? 1)

{

?? 1;

}else if(?? 2)

{

?? 2;

}else if(?? 3)

{

?? 3;

}else

{

?? ?? ? ?? ?? ???? ??? ? ??? ?????.

}

?? : ?? ??? ??? ?? ??? 'OR' ??? ????. ?? ???? ??? ??? ??? ? ??? ??? ?? ??? ??? ? ????.

????


???? ??
||
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>php.cn</title> <script> //給一個(gè)成績(jī) var score=89; //判斷成績(jī)所屬級(jí)別 if(score<60){ document.write("對(duì)不起,沒(méi)有及格"); }else if (score>=60&&score<70){ document.write("剛好及格"); }else if(score>=70&&score<80){ document.write("成績(jī)良好"); }else if(score>=80&&score<90){ document.write("成績(jī)優(yōu)秀"); }else if(score>=90&&score<100){ document.write("試卷這么難,這樣的成績(jī)簡(jiǎn)直逆天"); }else{ document.write("對(duì)不起,你的成績(jī)超出系統(tǒng)判斷范圍,請(qǐng)重新輸入"); } </script> </head> <body> </body> </html>