Loading

摘要: ```javascript var type = function (o){ var s = Object.prototype.toString.call(o); return s.match(/\[object (.*?)\]/)[1].toLowerCase(); }; type({}); // "object" type([]); // "array" type(5); // "n... 阅读全文
posted @ 2017-08-27 15:16 lewiskycc 阅读(118) 评论(0) 推荐(0) 编辑