1 ?运算a<b?(a=1,b=2):(a=2,b=1) 这样能返回2个值。2 if改&&index < 0 && (index = 5) || index >5 && (index = 0);相当于 if(index<0){index=5};if(index>5){index=0}也就是if语句可改成&&