📜  js 切换大小写大于 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:52.435000             🧑  作者: Mango

代码示例1
switch (true) {
  case (0 <= val &&  val < 1000): /* do something */ break;
  case (1000 <= val &&  val < 2000): /* do something */ break;
  ...
  case (29000 <= val &&  val < 30000): /* do something */ break;
}