1.
if(condition)
语句1
2.
if(condition)
语句1
else
语句2
3.
if(condition)
语句1
else if(condition)
语句2
else
语句3
ps:else与离它最近的if匹配
1.
if(condition)
语句1
2.
if(condition)
语句1
else
语句2
3.
if(condition)
语句1
else if(condition)
语句2
else
语句3
ps:else与离它最近的if匹配