<script>
var a = 5;
alert(a == 1 ? "a==1" : a == 2 ? "a == 2" : a == 3 ? "a == 3" : a == 4 ? "a == 4" : "a== 5")
</script>
运行过后请点个赞
<script>
var a = 5;
alert(a == 1 ? "a==1" : a == 2 ? "a == 2" : a == 3 ? "a == 3" : a == 4 ? "a == 4" : "a== 5")
</script>
运行过后请点个赞