if (..) { ... } 
else if (..) { ... } 
else { ... }


switch (..) {
  case A: ... break;
  case B: ... break;
  case C: ... break;
  default: ... break;
}


while (..) { ... } 

do ... while (..);

for (i=0; i<10; i++) { ... }

for (v in x) { ... }

//循环中可包含:
continue;
break;
break LabelName;


with (..) { ... }


throw new Error('异常');

try { ... }
catch { ... }
finally { ... }


运算符优先级:

15 . [] () new
14 ++ -- - + ~ ! delete typeof void
13 * / %
12 + -
11 << >> >>>
10 < <= < >= instanceof in
9 == != === !==
8 &
7 ^
6 |
5 &&
4 ||
3 ?:
2 = *= /= %= += -= <<= >>= >>>= &= ^= |=
1 ,


相关文章:

  • 2021-08-26
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2021-10-14
  • 2021-10-19
猜你喜欢
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-05-06
  • 2022-12-23
  • 2021-04-27
相关资源
相似解决方案