j简单去重心得

去重心得
string.replace(arr[i]+",","").indexOf((arr[i]+",")!=-1){alert(arr[i]是重复的)}

posted @ 2017-12-05 10:02  花无缺大哥  阅读(109)  评论(0编辑  收藏  举报