50 字
1 分钟
Switch 语法
开始
function checkQuestionType(type) { switch (type) { case "fill": return "填空题"; case "single": return "单选题"; case "multi": return "多选题"; case "judge": return "判断题"; case "essay": return "问答题"; default: return "未知题型"; } }