/*
*返回 删除重复项后的数组
**/
Array.prototype.distinct=
function
(){
var
a=[],b=[];
for
(
var
prop
in
this
){
var
d =
this
[prop];
if
(d===a[prop])
continue
;
//防止循环到prototype
if
(b[d]!=1){
a.push(d);
b[d]=1;
}
}
return
a;
}