但是 javascript 中可以传入任何值,字符串,数字,对象都可以 并且 case 中跟的还可以是表达式。 例如 case ‘hello’ + ‘world’ Swith 值与 case 中的表达式,相比较的时候,用的是===符号 还有就是 switc 替代 for 循环的话,可以这么来写 ...