标签:
使用正则去重
1 var s = "aabdeeagdcffdsf"; 2 var ss = s.replace(/(.)(?=.*\1)/g,""); 3 console.log(ss)
js字符串去重
原文地址:http://www.cnblogs.com/forver/p/4312131.html