摘要: 对一个数组删除其重复元素,保留删除的元素或者保留删除后的元素皆可。若借用新的数组变量,则:Array.prototype.rmRepeat = function() { // body... var newArr = [], rptArr = [], len = this.length; ... 阅读全文
posted @ 2015-08-03 09:17 锦衣夜行4.2 阅读(130) 评论(0) 推荐(0) 编辑