移除字串兩邊的空白: String.Trim(), string str = ” $10000 “; string strResult = str.Trim(); Console.WriteLine(strResult); //結果: “$10000”.
確定! 回上一頁