js返回数据类型 function type(obj){ return Object.prototype.toString.call(obj).replace(/\[object\s|\]/g, ''); }