在ES2015 版本裡,你可以透過一個Number 型別內建的 Number.isNaN() 函式來判斷該數值物件是否為NaN! Number.isNaN(num); // true. 目前TC39 有個Numeric ...
確定! 回上一頁