1、typeof(用法:typeof xxx || typeof (xxx)) 弊端:无法正确检测null、Array、Object 类型,所以无法判断一个值 2、instanceof/constructor(检测某一个实例是否属于某一个类)