StringBuffer sb = new StringBuffer(); if (params != null) { for (Entrye : params.entrySet()) { sb.append(e.getKey()); sb.append("="); sb.append(e.getValue()); sb.append("&"); } sb.substring(0, sb.length() - 1); }
本文共 315 字,大约阅读时间需要 1 分钟。
StringBuffer sb = new StringBuffer(); if (params != null) { for (Entrye : params.entrySet()) { sb.append(e.getKey()); sb.append("="); sb.append(e.getValue()); sb.append("&"); } sb.substring(0, sb.length() - 1); }
转载于:https://www.cnblogs.com/Baronboy/p/5910161.html