xmhky 原创图解 · 更新于 2026-09
逐个判断,命中即停——多条件筛选用它。
if (x==10) {...} else if (x==20) {...} else if (x==30) {...} else {...}