三目运算符(条件运算符)

a ? b : c简单理解方式为:
if(a) {

    return b;

} else {

    return c;

}
posted @ 2017-07-07 16:54  U3DEngineer  阅读(982)  评论(0编辑  收藏  举报