String strA
=
"
ABC DEF GHI
"
;
strA = strA.Replace( " DEF " , " XYZ " );
Response.Write (strA);
strA = strA.Replace( " DEF " , " XYZ " );
Response.Write (strA);
字符串中所含的第一参数都被第二参数替代!!!
转载于:https://www.cnblogs.com/Sangplus/archive/2007/08/23/866191.html