a ? b : c简单理解方式为: if(a) { return b; } else { return c; } 转载于:https://www.cnblogs.com/Study088/p/7133074.html