1.編碼問題中文出現亂碼前端
解決:apache
res = org.apache.commons.io.FileUtils.readFileToString(new File(subPath),"utf8");
2.前端出現\r\n編碼
解決:io
res = res.replaceAll("\r\n", "");