function delReiteration(str) {
	var reg = /(.).*?\1/g;
	while (str.match(reg) != null) {
		str = str.replace(RegExp.$1, '');
	}
	return str;
}
var str = 'abcdfdcea13241342';
alert(delReiteration(str));

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-06-27
  • 2022-12-23
  • 2022-01-01
  • 2022-01-01
  • 2021-07-16
相关资源
相似解决方案