js中switch语法

看图

 

 switch(需要匹配的参数){

case '字符'|数字:    break;

defaule:  默认模块;

}

posted @ 2021-04-23 20:46  浣熊sky  阅读(285)  评论(0)    收藏  举报