typeof 就是用來判斷參數是什麼型別,用法很簡單,就 typeof A 。 回傳值基本上就是常見的js data type: "number", "string", "boolean", "object" ...
確定! 回上一頁