<html> <head> <title>多条件的选取(if)</title> </head> <body> <script language="javascript"> <!-- score = prompt("请输入您的成绩:"); document.write("你的成绩为:",score,"<br>"); if(score < 0 || score > 100){ document.write("你的超出了0~100的范围!") } if(score >= 0 && score <= 100 ){ document.write("您的成绩在0~100范围内!") } //--> </script> </body> </html>