| Operator | Description |
|---|---|
| . [] () | Field access, array indexing, function calls, and expression grouping |
| ++ -- - ~ ! delete new typeof void | Unary operators, return data type, object creation, undefined values |
| * / % | Multiplication, division, modulo division |
| + - + | Addition, subtraction, string concatenation |
| << >> >>> | Bit shifting |
| < <= > >= instanceof | Less than, less than or equal, greater than, greater than or equal, instanceof |
| == != === !== | Equality, inequality, strict equality, and strict inequality |
| & | Bitwise AND |
| ^ | Bitwise XOR |
| | | Bitwise OR |
| && | Logical AND |
| || | Logical OR |
| ?: | Conditional |
| = OP= | Assignment, assignment with operation |
| , | Multiple evaluation |
Dec 20, 2012
javascript Operator Precedence 运算符优先级
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment