var type = function (o){ var s = Object.prototype.toString.call(o); return s.match(/\[object (.*?)\]/)[1].toLowerCase(); };
从http://javascript.ruanyifeng.com/stdlib/object.html复制
a-flydog 2016-07-05 16:54 原文
var type = function (o){ var s = Object.prototype.toString.call(o); return s.match(/\[object (.*?)\]/)[1].toLowerCase(); };
从http://javascript.ruanyifeng.com/stdlib/object.html复制