摘要:
Array.prototype.unique = function () { var tem = {}; var arr = []; var len = this.length; for (var i = 0; i < len; i++) { if (!tem[thi... 阅读全文
摘要:
/** * 返回target类型 * @param {} target */ function type(target) { var ret = typeof (target); var template = { "[object Array]": "array", "[object Object]": "object", ... 阅读全文