var type = function (o){ var s = Object.prototype.toString.call(o); return s.match(/\[object (.*?)\]/)[1].toLowerCase(); };
从http://javascript.ruanyifeng.com/stdlib/object.html复制
转载于:https://www.cnblogs.com/a-flydog/p/5644264.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复制
转载于:https://www.cnblogs.com/a-flydog/p/5644264.html