TypeScript 的變數皆於一開始就宣告變數型別,可避免JavaScript變數型別轉換可能的 ... winter }; let s: Season = Season.summer; //取用enum Season的值 switch (s) ...
確定! 回上一頁