JavaScript有六种数据类型 numberstringbooleannullundefinedobject 如何对类型进行判断 typeof null返回objectinstanceof 用来检测自定义对象Object.prototype.toString.apply('123') 检测基本类型和内置对象