和final的差異→ const在編譯時就載入,final在所屬的class初始化時才載入 //定義常數 const num = 15;//產生常數指定給變數 var foo = const [];
確定! 回上一頁