解决方法
更多猫皮肤:
var a:Array = ["Tom","John","Susan","Marie","Tom","Eva"]; a.sort(); var i:int = 0; while(i < a.length) { while(i < a.length+1 && a[i] == a[i+1]) { a.splice(i,1); } i++; }