public static String getParam(String url, String name) { String params = url.substring(url.indexOf("?") + 1, url.length()); Map<String, String> split = Splitter.on("&").withKeyValueSeparator("=").split(params); return split.get(name); }
原文地址:https://www.cnblogs.com/GuoGY/p/9325552.html
时间: 2024-10-30 04:01:13