2014年7月4日 ... 條件語法是在當指定的條件為true 時,就執行一整組指令。JavaScript 支援兩種條件 語法︰ if...else 和switch 。
developer.mozilla.org