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
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.
判断x>y,成立就取x,不成立就取y