在解答中使用了三元運算子簡化了邏輯表達,使其更加易讀。 三元運算子(Ternary operator)的使用方式是這樣的:. cond ? iftrue : iffalse 。cond 條件為真,則表示 ...
確定! 回上一頁