// 冒泡排序
var a = [1,3,2,4,5,3,2,1,4,6,7,7,6,6];
var b =[];
for(var i=0;i<a.length;i++){
var status = "false";
for(var j=0;j<b.length;j++){
if(a[i]==b[j]){
status = "true";
break;
}
}
if(status == "false"){
b.push(a[i]);
}
}
for(var x in b){
document.write(b[x]+",");
}