标签:
Array.prototype.unique3 = function(){ //数组去重
var res = [];
var json = {};
for(var i = 0; i < this.length; i++){
if(!json[this[i]]){
res.push(this[i]);
json[this[i]] = 1;
}
}
return res;
}
$scope.selectedShops=$scope.selectedShops.unique3();
标签:
原文地址:http://www.cnblogs.com/kelly007/p/4680503.html