(Airbnb 16.2) 如果你在多行區塊時使用if與else,將else放在if區塊的結尾花括號(})後的同一行。 // 壞寫法 if (test) { thing1() thing2() } else { thing3() } // 好 ...
確定! 回上一頁