50 字
1 分钟
Switch 语法
2019-11-10
2024-07-20

开始#

function checkQuestionType(type) {
switch (type) {
case "fill":
return "填空题";
case "single":
return "单选题";
case "multi":
return "多选题";
case "judge":
return "判断题";
case "essay":
return "问答题";
default:
return "未知题型";
}
}
Switch 语法
https://fuwari.vercel.app/posts/2019年/switch-语法/
作者
云小逸
发布于
2019-11-10
许可协议
CC BY-NC-SA 4.0