code: public static Map<String, String> splitUrlQuery(String query) {
          Map<String, String> result = new HashMap<String, String>();
  
          String[] pairs = query.split("&");
          if (pairs != null && pairs.length > 0) {
              for (String pair : pairs) {
                  String[] param = pair.split("=", 2);
                  if (param != null && param.length == 2) {
                      result.put(param[0], param[1]);
                  }
              }
          }
  
          return result;
      }
docs: 从URL中提取所有的参数。
  
  @param query URL地址
  @return 参数映射