呆萌纸飞机

文章
3
资源
1
加入时间
3年2月3天

switch语句 while循环 do-while循环

一.switch语句switch (表达式) { case 常量 1: 语句; break; case 常量 2: 语句; break; default: 语句;}遇到break关键词,它会跳出 switch 代码块。default关键词规定不存在 case 匹配时所运行的代码:练习var level = +prompt("请输入令...