0
1
596
第一种方法:创建空数组利用indexOf方法检测就数组的项是否在新数组中。 Array.prototype.unique=function(){ var arr=[];//...
若锦 编,67455 篇文章,2648316 人关注