string mystring="the are boys";
string[] tags = {"the"};
string[] replace ={"they"}
mystring.Replace(tags[0],replace[0]) // is not working
mystring.Replace("the","they") // is working
我以爲兩者都是相同的,但第一條語句不起作用。第二個是。 請幫我解決問題。字符串替換不在asp.net中工作
我幾乎害怕'mystring.Replace(下稱「」,「他們」)//正在' - 是真的。證實這確實不是...... OP不明白爲什麼發表這樣的評論。 –