Hug*_*anc -2 if-statement execution go
想象一下下面的一段代码:
if someBool && funcReturningABool() {
// code here...
}
Run Code Online (Sandbox Code Playgroud)
wheresomeBool是一个布尔值并funcReturningABool返回真或假。
如果someBool等于false,funcReturningABool仍然会被执行吗?
| 归档时间: |
|
| 查看次数: |
67 次 |
| 最近记录: |