NaN 或Infinity 這種在JavaScript 中原本就是number 型別的特殊值,在TypeScript 也可以用number 型別限制。 const nan: number = NaN; ...
確定! 回上一頁