Cherish_Now

导航

三目运算符多个条件判断的写法

a == 1 ? 10 :(a ==2 ? 20 :'未知')

posted on 2019-08-05 10:53  Cherish_Now  阅读(6692)  评论(1)    收藏  举报