js、php三元表达式简写 2020-05-27 本文已影响0人 张三与李四 js: a ? a : b; //可以简写为: a || b; php: $a ? $a : $b; //可以简写为: $a ?: $b;