Spring str = "\n\t哈喽word";
//这出去除字符串中的(\n或者\t)需要4个"\" 进行转义
Spring str1 = str.replaceAll("\\\\n",""); //或者("\\\\t"--取出\r)
Spring str = "\n\t哈喽word";
//这出去除字符串中的(\n或者\t)需要4个"\" 进行转义
Spring str1 = str.replaceAll("\\\\n",""); //或者("\\\\t"--取出\r)