c# 去除字符串中的換行符 "\r\n"

有點特別的是,在咱們使用replace進行換行符的替換時,須要按順序進行。html private string cleanString(string newStr) { string tempStr = newStr.Replace("\n", ""); return tempStr = tempStr.Replace("\r", ""); }  
相關文章
相關標籤/搜索