variablename=(condition)?value1:value2 

javascript条件运算符

05-11 15:38