标签:bsp span code nbsp color ace bcd log dem
var demo="aabbccd"; demo.replace(/(.|\n)\1/gi,"$1") //abcd
js 正则去重
原文地址:http://www.cnblogs.com/gaocong/p/7306222.html