We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
对于一些简单的判断,却需要用if else写好几行,不嫌麻烦吗?你可以用三元操作符,简化操作。
c = flag ? a : b; //如果flag为true,则将c赋值为a,反之为b