请问是否正确
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8" />
<title>数字转换中文大写</title>
</head>
<body>
<script>
//补充代码
var number = prompt("请输入您想转换成中文大写的0-9的数字");
switch (number) {
case "0":
alert("零");
break;
case "1":
alert("壹");
break;
case "2":
alert("贰");
break;
case "3":
alert("叁");
break;
case "4":
alert("肆");
break;
case "5":
alert("伍");
break;
case "6":
alert("陆");
break;
case "7":
alert("柒");
break;
case "8":
alert("捌");
break;
case "9":
alert("玖");
break;
default:
alert("输入的数字不对");
}
</script>
</body>
</html>0
收起
正在回答
1回答
效果实现的是正确的,棒棒哒,继续加油哦!
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星