js的其他運算符與優先級

<script> //三元運算符 exp1?exp2:exp3 如果條件滿足exp1執行exp2否則執行exp3 // 2>1?document.write("yes"):document.write("no"); // var a = 1>2?"yes":"no"; // document.write("<br />"); // document.write(a); // document.wr
相關文章
相關標籤/搜索