URLUtil工具类

com.justep.util.URLUtil
  • 我们封装了URLUtil编码和解码的工具类,要求开发者在后端使用该类对url进行编码和解码,以解决前后端编码规范不一致产生的问题

decodeURIComponent(String s)

功能:对url进行解码
说明:使用了UTF-8格式进行解码
参数:
    s:需要解码的目标url
返回:
    类型:String

encodeURIComponent(String s)

功能:对url进行编码
说明:使用了UTF-8格式进行编码
参数:
    s:需要编码的目标url
返回:
    类型:String

results matching ""

    No results matching ""

    results matching ""

      No results matching ""