JavaScript case 條件語句spa
示例code
switch(name){ case '1': age = 123; break; case '2' age = 456; break; default : age = 789; }