Skip to content
CodeAtlas
Main Navigation
高薪课
语言基础
强化课
中枢课
笔面试甄选
架构课
工具 🛠️
Appearance
Menu
Return to top
On this page
三目运算符
书写方式: 表达式1 ? 表达式2 : 表达式3
对表达式1进行boolean判定
如果判定结果为真,返回表达式2;否则,返回表达式3。