回复 1# 的帖子
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<Script Language ="JavaScript">
var str = prompt("提示信息", "1");
if ((str>7)||(str<1))
{
alert("你输入的值不合法" );
}
else
{SWITCH(str)
{case 1:
alert ("Monday");
BREAK;
CASE 2;
case 2:
alert ("Tuesday");
break;
case 3:
alere ("Wednesday");
break;
default:
alert ("Sorry,i don't know");
}
}
</Script>
</BODY>
</HTML>
这样写的,可是还是运行不出来,不知道哪里错了?高手帮我改改