摘要: 去除数组中重复的对象。 Array.prototype.getUnique = function() { var hash = {}, result = [], key; for ( var i = 0, l = this.length; i < l; ++i ) { key = JSON.stringify(this[i]); ... 阅读全文
posted @ 2017-07-19 11:54 baoged 阅读(90) 评论(0) 推荐(0) 编辑