Class: UrlParser

UrlParser()

new UrlParser()

URL解析器
Source:

Methods

(static) parseAllParams(fullUrl, urlPattern) → {object}

解析所有参数
Parameters:
Name Type Description
fullUrl string 完整的URL字符串
urlPattern string URL模式
Source:
Returns:
Type
object

(static) parsePathParams(fullUrl, urlPattern) → {object}

解析路径参数
Parameters:
Name Type Description
fullUrl string 完整的URL字符串
urlPattern string URL模式
Source:
Returns:
Type
object

(static) parseQueryParams(fullUrl) → {object}

解析查询字符串参数
Parameters:
Name Type Description
fullUrl string 完整的URL字符串
Source:
Returns:
Type
object