今日,我将共享分辨JavaScript种类的三种方式:typeof,instanceof和constructor。最先查询全部基本数据类型:空值(null)未定义(undefined)布尔值(boolean)数据(number)字符串数组(string)目标 (object)标记(symbol, ES6中增&