asp.net 中查找替换字符串是哪个函数?

2025-02-23 23:24:26
推荐回答(4个)
回答1:

str.replace("","");

回答2:

string str = "abc1";
str=str.Replace("1", "d");

回答3:

string str = "abc1";
str=str.Replace('1', 'd');

回答4:

replace