最简单的方法是什么?
我有一个这样的字符串。
var string='0ABAFFACBDFE...';
我想把它转换成这个。
var newString= '0A,BA,FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..FF,AC,BD,FE ..';