- Source:
- string/url.js
Methods
-
<static> appendQuery(url, query)
-
Merge the query parameters into given url.
Parameters:
Name Type Description url
String Original url.
query
Object Key-value pairs query object to be merged into the url.
- Source:
- string/urlAppendQuery.js
Returns:
- Type
- String
-
<static> join(base, extraPath, more)
-
Join base url and the extra url path.
Parameters:
Name Type Argument Description base
String extraPath
String more
any <repeatable>
More path
- Source:
- string/urlJoin.js
Returns:
- Type
- String
-
<static> objectToQueryString(obj)
-
Stringify an object into url query string.
Parameters:
Name Type Description obj
Object - Source:
- string/urlObjectToQueryString.js
Returns:
- Type
- String
-
<static> queryStringToObject(qs)
-
Parse query string into key-value pairs.
Parameters:
Name Type Description qs
String - Source:
- string/urlQueryStringToObject.js
Returns:
- Type
- Object