摘要: var type = function (o){ var s = Object.prototype.toString.call(o); return s.match(/\[object (.*?)\]/)[1].toLowerCase(); }; type({}); // "object" type 阅读全文
posted @ 2020-12-21 14:49 名字不好起啊 阅读(92) 评论(0) 推荐(0) 编辑