它使你的条件表达式变得更加可读,避免了布尔运算符的使用。
It makes your conditional expressions more readable; avoiding the use of Boolean operators.
如果被测试表达式中应当包含按位或运算符,则应当在条件表达式的两侧加上括号。
If the tested expression should contain the bitwise-or operator, then parentheses should be added around the conditional-expression.
如果被测试表达式中应当包含按位或运算符,则应当在条件表达式的两侧加上括号。
If the tested expression should contain the bitwise-or operator, then parentheses should be added around the conditional-expression.
应用推荐