一、惰性计算:操作符 conditon ? exp1 : exp2 会先计算 condition ,如果 condition为真,再计算 exp1 的值 ; 反之计算exp2的值,使用该操作符可以减少不必要的计算。 二、