js三元运算符,还不是很明白,能举一个简单例子么?
check
check 2016-12-22 13:08:45
0
2
1063
check
check

reply all(2)
数据分析师

js ternary operator, I still don’t understand it very well, can you give a simple example? -PHP Chinese website Q&A-js ternary operator, I still don’t understand it very well. Can you give a simple example? -PHP Chinese website Q&A

Please watch and learn.

迷茫
var x=1;
var y=2;
var z=x>y?x:y;

判断x>y,成立就取x,不成立就取y

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template