can I use `else if` with a ternary operator?

后端 未结 2 952
一个人的身影
一个人的身影 2021-02-14 16:00

Can I only use if and else in a statement in ternary operator syntax or can I also somehow include an else if?

example:

         


        
2条回答
提交回复
热议问题