JavaScript case 条件语句时间:2023-03-08 16:29:58JavaScript case 条件语句 示例 switch(name){ case '1': age = 123; break; case '2' age = 456; break; default : age = 789; }