相对于if判断语句执行效率更高
function actStatus(Status){ var statusData; switch (Status){ case "0": statusData = "结束"; break;//停止、结束 case "1": statusData = "报名中"; break; case "2": statusData = "进行中"; break; case "3": statusData = "已结束"; break; case "4": statusData = "已取消"; break; } return statusData; }