用typeof檢查資料型別,回傳的都是字串,如果是為宣告的變數則回傳'undefined'。 如何判斷型別是否為NaN? 比較特別的是: typeof NaN; //'number'. 假設楊康 ...
確定! 回上一頁