xiaolizi007
12/9/2016 - 5:25 AM

返回js对象的类型字符串

returnJsType #js

function getType(o) { 
var _t; return ((_t = typeof(o)) == "object" ? o==null && "null" || Object.prototype.toString.call(o).slice(8,-1):_t).toLowerCase(); 
}