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