//获取数组内所有重复元素,并以数组返回 //例:入参数组['1','2','4','7','1','2','2'] 返回数组:['1','2'] function GetRepeatFwxmmc(ary1){ var ary = ary1.sort();//数组排序 var cffwxmsAry = new Array(); //所有重复元素添加进新数组内 for(var i=0;i<ary.length;i++){ if (ary[i]==ary[i+1]){ cffwxmsAry.push…