js 数据类型 6大类:object ,undefined,boolean,string,number,null,可是有时候咱们常常要更准确的判断,好比,是数组,仍是单例。。。数组
那么就用apply吧,用法就是利用toString.apply(),来判断。app