摘要: Array.prototype.unique = function () { var tem = {}; var arr = []; var len = this.length; for (var i = 0; i < len; i++) { if (!tem[thi... 阅读全文
posted @ 2019-04-17 06:51 110来了 阅读(138) 评论(0) 推荐(0) 编辑
摘要: /** * 返回target类型 * @param {} target */ function type(target) { var ret = typeof (target); var template = { "[object Array]": "array", "[object Object]": "object", ... 阅读全文
posted @ 2019-04-17 06:50 110来了 阅读(775) 评论(0) 推荐(0) 编辑