score =prompt("input ur score") ;
if(score!=null)
{
if(score>=90){ document.write("你很棒!");}
else if(score>=75)
{
document.write("不错吆!");
}
else if(score>=60)
{
document.write("要加油!");
}
else
{
document.write("要努力了!");
}}
else
{alert("r u sb?");}
if(score!=null)
{
if(score>=90){ document.write("你很棒!");}
else if(score>=75)
{
document.write("不错吆!");
}
else if(score>=60)
{
document.write("要加油!");
}
else
{
document.write("要努力了!");
}}
else
{alert("r u sb?");}
2016-03-30
相同 name 的窗口只能创建一个,要想创建多个窗口则 name 不能相同。
2016-03-30
<input type="button" value="点击我" onclick="contxt()"
2016-03-30
http://nianjian.xiaze.com/tags.php?/%E7%99%BD%E5%9F%8E%E5%B9%B4%E9%89%B4/1/13459328483/
2016-03-30
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>判断语句</title>
<script type="text/javascript">
var score =80; //score变量存储成绩,初值为80
if(score>=80)
{
document.write("很棒,成绩及格了。<br>");
}
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>判断语句</title>
<script type="text/javascript">
var score =80; //score变量存储成绩,初值为80
if(score>=80)
{
document.write("很棒,成绩及格了。<br>");
}
</script>
</head>
<body>
</body>
</html>
2016-03-30