var type = function (o){ var s = Object.prototype.toString.call(o); return s.match(/[object (.*?)]/)[1].toLowerCase(); };
从http://javascript.ruanyifeng.com/stdlib/object.html复制
var type = function (o){ var s = Object.prototype.toString.call(o); return s.match(/[object (.*?)]/)[1].toLowerCase(); };
从http://javascript.ruanyifeng.com/stdlib/object.html复制