Cherish_Now

导航

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

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

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