// 类型检测 typeof str //检测string boolean number undefind toString.call(obj) //检测 null function object array...等对象 a instanceof Object //a是否是由 Object构造