分析:
string里面并没有这种方法,StringBuilder中有此类方法,替换过后,再次转换回string类型就可以了。
int path = 100;
StringBuilder result1 = new StringBuilder(result);
result1 = result1.replace(path,path+1, ":{" );
result = ""+result1 ;
分析:
string里面并没有这种方法,StringBuilder中有此类方法,替换过后,再次转换回string类型就可以了。
int path = 100;
StringBuilder result1 = new StringBuilder(result);
result1 = result1.replace(path,path+1, ":{" );
result = ""+result1 ;