//将获得的换行字符串去掉换行,然后去掉最后一个"/"
String CityS =request.getParameter("CityS");
String test = CityS.replaceAll("\r\n", "/");
String newCityS = test.substring(0, test.length()-1);
System.out.println("newCityS" + newCityS);
//将获得的换行字符串去掉换行,然后去掉最后一个"/"
String CityS =request.getParameter("CityS");
String test = CityS.replaceAll("\r\n", "/");
String newCityS = test.substring(0, test.length()-1);
System.out.println("newCityS" + newCityS);