由于typeof 只能判断基本类型 string,number,boolean, undefined,object 利用 Object.prototype.toString.call 实现: function type (obj) { return Object.prototype.to