当前位置:网站首页>Hutool gracefully parses URL links and obtains parameters

Hutool gracefully parses URL links and obtains parameters

2022-07-06 08:38:00 XYLANCC

UrlBuilder builder = UrlBuilder.ofHttp("www.hutool.cn/aaa/bbb/?a= Zhang San &b=%e6%9d%8e%e5%9b%9b#frag1", CharsetUtil.CHARSET_UTF_8);

// Output Zhang San

Console.log(builder.getQuery().get("a"));

// Output Li Si

Console.log(builder.getQuery().get("b"));

原网站

版权声明
本文为[XYLANCC]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060830157560.html