从++[[]][+[]]+[+[]]==10?深入浅出弱类型JS的隐式转换
作者: jawil创建于 2017年3月4日更新于 2023年5月15日
标签JS难点
4.1 ECMAScript operator precedence | Operator | Description | | . [] () | Field access, array indexing, function calls, and expression grouping | | ++ — - + ~ ! delete new typeof void | Unary operators, return data type, object creation, undefined value | | * / % | Multiplication, division, modulus | | + - + | Addition, subtraction, string concatenation | | << >> >>> | Shift | | < <= > >= instanceof | Less than, less than or equal to, greater than, greater than or equal to, instanceof | | == != === !== | Equal, not equal, strict equality, non-strict equality | | & | Bitwise AND | | ^ | Bitwise XOR | | | | Bitwise OR | | && | Logical AND | | || | Logical OR | …
内容来源: jawil/blog