标签:数组 his 属性 如何 去重 == .bat var 根据
var arr=[];
for(var i = 0, l = this.arr.length; i < l; i++) {
for(var j = i + 1; j < l; j++){
if (this.arr[i].batch === this.arr[j].batch){
j = ++i;
}
}
this.arr.push(this.arr[i]);
}
标签:数组 his 属性 如何 去重 == .bat var 根据
原文地址:https://www.cnblogs.com/Regina-wisdom/p/9481969.html