Of course,you could use an ordinary if-else statement (described later),but the ternary operator is much terser.

 
  • 当然,也可以换用普通的if-else语句(在后面介绍),但三元运算符更加简洁。
今日热词
目录 附录 查词历史