参考:
<script language="javascript">
function test(cs){
switch(cs){
case "a":alert("input a");break;
case "b":alert("input b");break;
case "c":alert("input c");break;
default:alert("input other words");break;
}
}
test("a");
test("b");
test("c");
test("d");
</script>
switch...case语句怎样接字符串啊???
最新推荐文章于 2024-07-24 18:49:12 发布