a == 1 ? 10 :(a ==2 ? 20 :'未知')
三目运算符多个条件判断的写法
猜你喜欢
转载自www.cnblogs.com/cherishnow/p/11301681.html
今日推荐
周排行