今天需要在switch中添加一个条件,类似if中的 " || “操作switch(var) { case : case : ... break; case : case : ... break; ... }这样条件2 5会执行一样的操作.