js三元运算符

三元运算符
<script>
    var a = 3;
    var b = 4;

    var c = a > b ? 1:0;

    alert(c);


</script>
原文地址:https://www.cnblogs.com/hk18181358129/p/13281941.html