条件运算符的结合是自右向左的: eg: a>b?a:c>d?c:d 应该理解为: a>b?a:(c>d?c:d) 转载于:https://www.cnblogs.com/ciaociao/p/6527549.html