三目运算

  1. var b =condition? exp01 exp02;
  2. condition-- true 输出exp01
  3. condition-- false 输出exp02
  1. var a=(10>4)?10:4