會依照變數屬於哪個case就做哪一種處理break非常重要一定要記得加喔,不然會報錯。 void main() { var fruit = 'apple'; switch(fruit) { case 'banana': print('You have ...
確定! 回上一頁