//js排除重复数据
var arr = ['11', '22', '33', '44', '55', '11', '22', 'aaa', 'aaa'];
function delrepeat(_arr) {
var newarr = [], temp = {};
for(var i=0, len = _arr.length; i <= len; i++) {
if(temp[_arr[i]] != _arr[i]) {
newarr.push(_arr[i]);
temp[_arr[i]] = _arr[i];
}
}
console.log(newarr);
}
delrepeat(arr);