新手~~请各位看看代码哪里出错
目的:输入0-9之间的数字输出相应的单词;代码如下:
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<script>
var x = prompt("输入1个数字"," ");
switch (x)
{
case "0" ;
alert("zero");
break;
case "1";
alert("one");
break;
case "2";
alert("two");
break;
case "3";
alert("three");
break;
case "4";
alert("four");
break;
case "5";
alert("five");
break;
case "6";
alert("six");
break;
case "7";
alert("server");
break;
case "8";
alert("nigth");
break;
case "9";
alert("nine");
break;
default( );
alert(超出啦!);
}
</script>
</body>
</html>